浏览代码

wxGUI: patch by Glynn for running r.mapcalc from command line with quotes

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57014 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 11 年之前
父节点
当前提交
d22feef328
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      gui/wxpython/core/utils.py

+ 1 - 3
gui/wxpython/core/utils.py

@@ -38,9 +38,7 @@ def normalize_whitespace(text):
 
 def split(s):
     """!Platform spefic shlex.split"""
-    if sys.version_info >= (2, 6):
-        return shlex.split(s, posix = (sys.platform != "win32"))
-    elif sys.platform == "win32":
+    if sys.platform == "win32":
         return shlex.split(s.replace('\\', r'\\'))
     else:
         return shlex.split(s)