[GRASS-SVN] r66480 - grass-addons/tools/addons

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Oct 12 14:01:41 PDT 2015


Author: wenzeslaus
Date: 2015-10-12 14:01:41 -0700 (Mon, 12 Oct 2015)
New Revision: 66480

Modified:
   grass-addons/tools/addons/update_manual.py
Log:
fix wrong variable name in r66479

Testing the function code by hand in an interactive console.

Variable names made longer consistency, readability and PEP8.


Modified: grass-addons/tools/addons/update_manual.py
===================================================================
--- grass-addons/tools/addons/update_manual.py	2015-10-12 20:56:19 UTC (rev 66479)
+++ grass-addons/tools/addons/update_manual.py	2015-10-12 21:01:41 UTC (rev 66480)
@@ -14,11 +14,11 @@
     Goes two levels deep to get directory names which are assumed
     to be addon names.
     """
-    top_dirs = os.walk(path).next()[1]
+    top_directories = os.walk(path).next()[1]
     addons = []
-    for d in top_dirs:
-        a.extend(os.walk(d).next()[1])
-    addons.extend(top_dirs)
+    for directory in top_directories:
+        addons.extend(os.walk(directory).next()[1])
+    addons.extend(top_directories)
     return addons
 
 



More information about the grass-commit mailing list