[prev in list] [next in list] [prev in thread] [next in thread]
List: grass-commit
Subject: [GRASS-SVN] r44107 -
From: svn_grass () osgeo ! org
Date: 2010-10-30 16:35:45
Message-ID: 20101030163545.A46543903B0 () trac ! osgeo ! org
[Download RAW message or body]
Author: martinl
Date: 2010-10-30 09:35:45 -0700 (Sat, 30 Oct 2010)
New Revision: 44107
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
Log:
shlex.split() posix parameter available in Python 2.6+
(merge r44106 from trunk)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2010-10-30 16:33:57 UTC (rev 44106)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/utils.py 2010-10-30 16:35:45 UTC (rev 44107)
@@ -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