Pārlūkot izejas kodu

pygrass interface: Some typo fixes (merge from relbr72)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69311 15284696-431f-4ddb-bdfa-cd5b030d7da7
Soeren Gebbert 8 gadi atpakaļ
vecāks
revīzija
5629079c12
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      lib/python/pygrass/modules/interface/module.py

+ 4 - 3
lib/python/pygrass/modules/interface/module.py

@@ -15,7 +15,6 @@ from .typedict import TypeDict
 from .read import GETFROMTAG, DOC
 from .read import GETFROMTAG, DOC
 from .env import G_debug
 from .env import G_debug
 
 
-
 if sys.version_info[0] == 2:
 if sys.version_info[0] == 2:
     from itertools import izip_longest as zip_longest
     from itertools import izip_longest as zip_longest
 else:
 else:
@@ -372,6 +371,8 @@ class Module(object):
     Multiple run test
     Multiple run test
     >>> colors = Module("r.colors", map="test_a",
     >>> colors = Module("r.colors", map="test_a",
     ...                                            color="ryb", run_=False)
     ...                                            color="ryb", run_=False)
+    >>> colors.get_bash()
+    u'r.colors map=test_a color=ryb'
     >>> colors.run()
     >>> colors.run()
     Module('r.colors')
     Module('r.colors')
     >>> colors(color="gyr")
     >>> colors(color="gyr")
@@ -584,11 +585,11 @@ class Module(object):
         return self
         return self
 
 
     def get_bash(self):
     def get_bash(self):
-        """Return a BASH rapresentation of the Module."""
+        """Return a BASH representation of the Module."""
         return ' '.join(self.make_cmd())
         return ' '.join(self.make_cmd())
 
 
     def get_python(self):
     def get_python(self):
-        """Return a Python rapresentation of the Module."""
+        """Return a Python representation of the Module."""
         prefix = self.name.split('.')[0]
         prefix = self.name.split('.')[0]
         name = '_'.join(self.name.split('.')[1:])
         name = '_'.join(self.name.split('.')[1:])
         params = ', '.join([par.get_python() for par in self.params_list
         params = ', '.join([par.get_python() for par in self.params_list