[GRASS-SVN] r56735 - grass/trunk/lib/python/pygrass/modules/interface

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jun 16 11:05:11 PDT 2013


Author: zarch
Date: 2013-06-16 11:05:10 -0700 (Sun, 16 Jun 2013)
New Revision: 56735

Modified:
   grass/trunk/lib/python/pygrass/modules/interface/flag.py
Log:
Fix Flag __doc__ attribute

Modified: grass/trunk/lib/python/pygrass/modules/interface/flag.py
===================================================================
--- grass/trunk/lib/python/pygrass/modules/interface/flag.py	2013-06-16 17:20:05 UTC (rev 56734)
+++ grass/trunk/lib/python/pygrass/modules/interface/flag.py	2013-06-16 18:05:10 UTC (rev 56735)
@@ -4,13 +4,13 @@
 
 @author: pietro
 """
-from read import element2dict
+import read
 
 
 class Flag(object):
     def __init__(self, xflag=None, diz=None):
         self.value = False
-        diz = element2dict(xflag) if xflag is not None else diz
+        diz = read.element2dict(xflag) if xflag is not None else diz
         self.name = diz['name']
         self.special = True if self.name in (
             'verbose', 'overwrite', 'quiet', 'run') else False
@@ -47,6 +47,6 @@
         """
         {name}: {default}
             {description}"""
-        return _DOC['flag'].format(name=self.name,
-                                   default=repr(self.default),
-                                   description=self.description)
+        return read.DOC['flag'].format(name=self.name,
+                                       default=repr(self.default),
+                                       description=self.description)



More information about the grass-commit mailing list