From 2712523732bbd9902c44ab0e4cfe0d5442a82b60 Mon Sep 17 00:00:00 2001 From: rread <rread> Date: Thu, 29 Jan 2004 00:11:21 +0000 Subject: [PATCH] don't use +=, because old pythons don't have it --- lustre/utils/lmc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lustre/utils/lmc b/lustre/utils/lmc index 9854c64fb3..79ed60f2a4 100755 --- a/lustre/utils/lmc +++ b/lustre/utils/lmc @@ -1015,7 +1015,7 @@ def cmdlinesplit(cmdline): sys.exit(1) i = match.end() if arg is None: arg = esc_quote.sub(r'\1', match.group(1)) - else: arg += esc_quote.sub(r'\1', match.group(1)) + else: arg = arg + esc_quote.sub(r'\1', match.group(1)) elif c == "'": match = single_quote.match(cmdline, i) @@ -1024,7 +1024,7 @@ def cmdlinesplit(cmdline): sys.exit(1) i = match.end() if arg is None: arg = match.group(1) - else: arg += match.group(1) + else: arg = arg + match.group(1) elif c == "\\": match = escaped.match(cmdline, i) @@ -1033,20 +1033,20 @@ def cmdlinesplit(cmdline): sys.exit(1) i = match.end() if arg is None: arg = match.group(1) - else: arg += match.group(1) + else: arg = arg + match.group(1) elif c.isspace(): if arg != None: arg_list.append(str(arg)) arg = None while i < len(cmdline) and cmdline[i].isspace(): - i += 1 + i = i + 1 else: match = outside.match(cmdline, i) assert match i = match.end() if arg is None: arg = match.group() - else: arg += match.group() + else: arg = arg + match.group() if arg != None: arg_list.append(str(arg)) -- GitLab