[GRASS-SVN] r69009 - grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 20 01:26:51 PDT 2016
Author: huhabla
Date: 2016-07-20 01:26:50 -0700 (Wed, 20 Jul 2016)
New Revision: 69009
Modified:
grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py
Log:
pygrass interface: Some typo fixes
Modified: grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py
===================================================================
--- grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py 2016-07-19 19:02:59 UTC (rev 69008)
+++ grass/branches/releasebranch_7_2/lib/python/pygrass/modules/interface/module.py 2016-07-20 08:26:50 UTC (rev 69009)
@@ -15,7 +15,6 @@
from .read import GETFROMTAG, DOC
from .env import G_debug
-
if sys.version_info[0] == 2:
from itertools import izip_longest as zip_longest
else:
@@ -372,6 +371,8 @@
Multiple run test
>>> colors = Module("r.colors", map="test_a",
... color="ryb", run_=False)
+ >>> colors.get_bash()
+ u'r.colors map=test_a color=ryb'
>>> colors.run()
Module('r.colors')
>>> colors(color="gyr")
@@ -584,11 +585,11 @@
return self
def get_bash(self):
- """Return a BASH rapresentation of the Module."""
+ """Return a BASH representation of the Module."""
return ' '.join(self.make_cmd())
def get_python(self):
- """Return a Python rapresentation of the Module."""
+ """Return a Python representation of the Module."""
prefix = self.name.split('.')[0]
name = '_'.join(self.name.split('.')[1:])
params = ', '.join([par.get_python() for par in self.params_list
More information about the grass-commit
mailing list