[GRASS-SVN] r59028 - grass/trunk/scripts/g.manual
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 13 15:35:01 PST 2014
Author: marisn
Date: 2014-02-13 15:35:01 -0800 (Thu, 13 Feb 2014)
New Revision: 59028
Modified:
grass/trunk/scripts/g.manual/g.manual.py
Log:
Do not mix tabs and spaces in Pyhton as per PEP 8
Modified: grass/trunk/scripts/g.manual/g.manual.py
===================================================================
--- grass/trunk/scripts/g.manual/g.manual.py 2014-02-13 23:23:34 UTC (rev 59027)
+++ grass/trunk/scripts/g.manual/g.manual.py 2014-02-13 23:35:01 UTC (rev 59028)
@@ -2,15 +2,15 @@
############################################################################
#
-# MODULE: g.manual
-# AUTHOR(S): Markus Neteler
+# MODULE: g.manual
+# AUTHOR(S): Markus Neteler
# Converted to Python by Glynn Clements
-# PURPOSE: Display the HTML/MAN pages
-# COPYRIGHT: (C) 2003, 2008, 2010-2012 by the GRASS Development Team
+# PURPOSE: Display the HTML/MAN pages
+# COPYRIGHT: (C) 2003, 2008, 2010-2012 by the GRASS Development Team
#
-# This program is free software under the GNU General Public
-# License (>=v2). Read the file COPYING that comes with GRASS
-# for details.
+# This program is free software under the GNU General Public
+# License (>=v2). Read the file COPYING that comes with GRASS
+# for details.
#
#############################################################################
@@ -87,9 +87,9 @@
path = os.path.join(os.getenv('GRASS_ADDON_BASE'), 'docs', 'man', 'man1', entry + '.1')
for ext in ['', '.gz', '.bz2']:
- if os.path.exists(path + ext):
- os.execlp('man', 'man', path + ext)
- grass.fatal(_("Error starting 'man' for '%s'") % path)
+ if os.path.exists(path + ext):
+ os.execlp('man', 'man', path + ext)
+ grass.fatal(_("Error starting 'man' for '%s'") % path)
grass.fatal(_("No manual page entry for '%s'") % entry)
def main():
@@ -117,12 +117,12 @@
if sys.platform == 'darwin':
# hack for MacOSX
- browser_name = os.getenv('GRASS_HTML_BROWSER_MACOSX', '..').split('.')[2]
+ browser_name = os.getenv('GRASS_HTML_BROWSER_MACOSX', '..').split('.')[2]
elif sys.platform == 'cygwin':
# hack for Cygwin
- browser_name = grass.basename(browser, 'exe')
+ browser_name = grass.basename(browser, 'exe')
else:
- browser_name = grass.basename(browser)
+ browser_name = grass.basename(browser)
# keep order!
# first test for index...
More information about the grass-commit
mailing list