Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5d65ce
)
python 1.5 doesn't have isspace() (I know, how barbaric), but this should
author
rread
<rread>
Tue, 3 Feb 2004 07:43:47 +0000
(07:43 +0000)
committer
rread
<rread>
Tue, 3 Feb 2004 07:43:47 +0000
(07:43 +0000)
do just as well.
lustre/utils/lmc
patch
|
blob
|
history
diff --git
a/lustre/utils/lmc
b/lustre/utils/lmc
index
56bd001
..
8da28a1
100755
(executable)
--- a/
lustre/utils/lmc
+++ b/
lustre/utils/lmc
@@
-1047,11
+1047,11
@@
def cmdlinesplit(cmdline):
if arg is None: arg = match.group(1)
else: arg = arg + match.group(1)
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
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)
i = i + 1
else:
match = outside.match(cmdline, i)