[GRASS-SVN] r58033 - grass/trunk/lib/python/pygrass/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Oct 17 13:04:42 PDT 2013
Author: zarch
Date: 2013-10-17 13:04:42 -0700 (Thu, 17 Oct 2013)
New Revision: 58033
Modified:
grass/trunk/lib/python/pygrass/gis/region.py
Log:
Make the repr of the class consistent with the attributes name
Modified: grass/trunk/lib/python/pygrass/gis/region.py
===================================================================
--- grass/trunk/lib/python/pygrass/gis/region.py 2013-10-17 19:55:46 UTC (rev 58032)
+++ grass/trunk/lib/python/pygrass/gis/region.py 2013-10-17 20:04:42 UTC (rev 58033)
@@ -193,9 +193,9 @@
#----------MAGIC METHODS----------
def __repr__(self):
- return 'Region(n=%g, s=%g, e=%g, w=%g, nsres=%g, ewres=%g)' % (
- self.north, self.south, self.east, self.west,
- self.nsres, self.ewres)
+ rg = 'Region(north=%g, south=%g, east=%g, west=%g, nsres=%g, ewres=%g)'
+ return rg % (self.north, self.south, self.east, self.west,
+ self.nsres, self.ewres)
def _repr_html_(self):
return dict2html(dict(self.items()), keys=self.keys(),
More information about the grass-commit
mailing list