Bläddra i källkod

g.extension: untabify

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@51389 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 13 år sedan
förälder
incheckning
60b11ea7b3
1 ändrade filer med 10 tillägg och 10 borttagningar
  1. 10 10
      scripts/g.extension/g.extension.py

+ 10 - 10
scripts/g.extension/g.extension.py

@@ -3,7 +3,7 @@
 ############################################################################
 #
 # MODULE:       g.extension
-# AUTHOR(S):   	Markus Neteler
+# AUTHOR(S):    Markus Neteler
 #               Pythonized & upgraded for GRASS 7 by Martin Landa
 # PURPOSE:      Tool to download and install extensions from GRASS Addons SVN into 
 #               local GRASS installation
@@ -894,26 +894,26 @@ def check_style_files(fil):
     addons_file = os.path.join(options['prefix'], 'docs', 'html', fil)
 
     if os.path.isfile(addons_file):
-	return
+        return
 
     try:
         shutil.copyfile(dist_file,addons_file)
     except OSError, e:
         grass.fatal(_("Unable to create '%s': %s") % (addons_file, e))
     
-def create_dir(path):  	
-    if os.path.isdir(path):  	  	 
-        return  	  	 
+def create_dir(path):   
+    if os.path.isdir(path):              
+        return                   
     
-    try:  	  	 
-        os.makedirs(path)  	  	 
-    except OSError, e:  	  	 
-        grass.fatal(_("Unable to create '%s': %s") % (path, e))  	  	 
+    try:                 
+        os.makedirs(path)                
+    except OSError, e:                   
+        grass.fatal(_("Unable to create '%s': %s") % (path, e))                  
         
     grass.debug("'%s' created" % path)
 
 def check_dirs():
-    create_dir(os.path.join(options['prefix'], 'bin'))	 	 
+    create_dir(os.path.join(options['prefix'], 'bin'))           
     create_dir(os.path.join(options['prefix'], 'docs', 'html'))
     check_style_files('grass_logo.png')
     check_style_files('grassdocs.css')