UtilitiesPython2/Tools.py

changeset 1309
6caa231421cf
parent 1308
2b602a1521e7
child 1509
c0b5e693b0eb
--- a/UtilitiesPython2/Tools.py	Fri Sep 09 11:54:20 2011 +0200
+++ b/UtilitiesPython2/Tools.py	Fri Sep 09 12:00:59 2011 +0200
@@ -108,7 +108,7 @@
     """
     flags = []
     
-    pos = line.rindex(startComment)
+    pos = line.rfind(startComment)
     if pos >= 0:
         comment = line[pos + len(startComment):].strip()
         if endComment:

eric ide

mercurial