Whamcloud - gitweb
python 1.5 doesn't have isspace() (I know, how barbaric), but this should
authorrread <rread>
Tue, 3 Feb 2004 07:43:47 +0000 (07:43 +0000)
committerrread <rread>
Tue, 3 Feb 2004 07:43:47 +0000 (07:43 +0000)
do just as well.

lustre/utils/lmc

index 56bd001..8da28a1 100755 (executable)
@@ -1047,11 +1047,11 @@ def cmdlinesplit(cmdline):
             if arg is None: arg = match.group(1)
             else:           arg = arg + match.group(1)
                                                                                                                                                
-        elif c.isspace():
+        elif c in string.whitespace:
             if arg != None:
                 arg_list.append(str(arg))
             arg = None
-            while i < len(cmdline) and cmdline[i].isspace():
+            while i < len(cmdline) and cmdline[i] in string.whitespace:
                 i = i + 1
         else:
             match = outside.match(cmdline, i)