瀏覽代碼

fix python (2.4) syntax

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38029 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 年之前
父節點
當前提交
59896fa357
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      gui/wxpython/gui_modules/menuform.py
  2. 1 1
      gui/wxpython/gui_modules/workspace.py

+ 1 - 1
gui/wxpython/gui_modules/menuform.py

@@ -399,7 +399,7 @@ class grassTask:
 
         return cmd
 
-class processTask():
+class processTask:
     """!A ElementTree handler for the --interface-description output,
     as defined in grass-interface.dtd. Extend or modify this and the
     DTD if the XML output of GRASS' parser is extended or modified.

+ 1 - 1
gui/wxpython/gui_modules/workspace.py

@@ -42,7 +42,7 @@ try:
 except ImportError:
     wxnviz = None
 
-class ProcessWorkspaceFile():
+class ProcessWorkspaceFile:
     def __init__(self, tree):
         """!A ElementTree handler for the GXW XML file, as defined in
         grass-gxw.dtd.