[GRASS-SVN] r44111 -
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Oct 30 13:12:23 EDT 2010
Author: martinl
Date: 2010-10-30 10:12:23 -0700 (Sat, 30 Oct 2010)
New Revision: 44111
Modified:
grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/utils.py
Log:
fix utils.split() for python < 2.6
(merge r44109 from devbr6)
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 17:11:22 UTC (rev 44110)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/utils.py 2010-10-30 17:12:23 UTC (rev 44111)
@@ -36,8 +36,9 @@
"""!Platform spefic shlex.split"""
if sys.version_info >= (2, 6):
return shlex.split(s, posix = (sys.platform != "win32"))
+ elif sys.platform == "win32":
+ return shlex.split(s.replace('\\', r'\\'))
else:
- # TODO
return shlex.split(s)
def GetTempfile(pref=None):
More information about the grass-commit
mailing list