From cf3392962b07507e2514a5e8647cc885ac3ee490 Mon Sep 17 00:00:00 2001
From: rread <rread>
Date: Tue, 3 Feb 2004 07:43:47 +0000
Subject: [PATCH] python 1.5 doesn't have isspace() (I know, how barbaric), but
 this should do just as well.

---
 lustre/utils/lmc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lustre/utils/lmc b/lustre/utils/lmc
index 56bd00117c..8da28a15de 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)
-- 
GitLab