[GRASS-SVN] r44106 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 30 12:33:57 EDT 2010


Author: martinl
Date: 2010-10-30 09:33:57 -0700 (Sat, 30 Oct 2010)
New Revision: 44106

Modified:
   grass/trunk/gui/wxpython/gui_modules/utils.py
Log:
shlex.split() posix parameter available in Python 2.6+


Modified: grass/trunk/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/utils.py	2010-10-30 16:01:17 UTC (rev 44105)
+++ grass/trunk/gui/wxpython/gui_modules/utils.py	2010-10-30 16:33:57 UTC (rev 44106)
@@ -34,7 +34,11 @@
 
 def split(s):
     """!Platform spefic shlex.split"""
-    return shlex.split(s, posix = (sys.platform != "win32"))
+    if sys.version_info >= (2, 6):
+        return shlex.split(s, posix = (sys.platform != "win32"))
+    else:
+        # TODO
+        return shlex.split(s)
 
 def GetTempfile(pref=None):
     """



More information about the grass-commit mailing list