[GRASS-SVN] r61219 - sandbox/krejcmat/src

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 9 07:28:38 PDT 2014


Author: martinl
Date: 2014-07-09 07:28:38 -0700 (Wed, 09 Jul 2014)
New Revision: 61219

Modified:
   sandbox/krejcmat/src/jinjainfo.py
Log:
jinja: syntax cosmetics


Modified: sandbox/krejcmat/src/jinjainfo.py
===================================================================
--- sandbox/krejcmat/src/jinjainfo.py	2014-07-09 12:41:38 UTC (rev 61218)
+++ sandbox/krejcmat/src/jinjainfo.py	2014-07-09 14:28:38 UTC (rev 61219)
@@ -120,7 +120,9 @@
         self.mdOWSTagStr=""
         tab=0
         for item in self.mdOWSTag:
-            if str(item).find(" endfor ")!=-1 or str(item).find(" endif ")!=-1 or str(item).find(" endwhile ")!=-1:
+            if str(item).find(" endfor ") != -1 or \
+                    str(item).find(" endif ") != -1 or \
+                    str(item).find(" endwhile ") != -1:
                 tab-=1
                 continue
             
@@ -129,7 +131,9 @@
             self.mdOWSTagStr+=str1
             self.mdOWSTagStrList.append(tabstr + item[1:])
             
-            if str(item).find(" for ")!=-1 or str(item).find(" if ")!=-1 or str(item).find(" while ")!=-1:
+            if str(item).find(" for ") != -1 or \
+                    str(item).find(" if ") != -1 or \
+                    str(item).find(" while ") != -1:
                 tab+=1
                 
     def _readJinjaTags(self):
@@ -247,4 +251,4 @@
 #         self.grupedList=finalList
 #         return  finalList
 #===============================================================================
-            
\ No newline at end of file
+            



More information about the grass-commit mailing list