From: rread Date: Tue, 3 Feb 2004 07:43:47 +0000 (+0000) Subject: python 1.5 doesn't have isspace() (I know, how barbaric), but this should X-Git-Tag: 1.0.4~48 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=cf3392962b07507e2514a5e8647cc885ac3ee490;p=fs%2Flustre-release.git python 1.5 doesn't have isspace() (I know, how barbaric), but this should do just as well. --- diff --git a/lustre/utils/lmc b/lustre/utils/lmc index 56bd001..8da28a1 100755 --- 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) - 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)