[GRASS-SVN] r44108 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Oct 30 12:36:39 EDT 2010


Author: martinl
Date: 2010-10-30 09:36:39 -0700 (Sat, 30 Oct 2010)
New Revision: 44108

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


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/utils.py	2010-10-30 16:35:45 UTC (rev 44107)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/utils.py	2010-10-30 16:36:39 UTC (rev 44108)
@@ -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