[prev in list] [next in list] [prev in thread] [next in thread] 

List:       grass-commit
Subject:    [GRASS-SVN] r44108 -
From:       svn_grass () osgeo ! org
Date:       2010-10-30 16:36:39
Message-ID: 20101030163639.84BD43903B0 () trac ! osgeo ! org
[Download RAW message or body]

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):
     """

_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic