Fixed a silly issue in the new code.

Fri, 09 Sep 2011 12:00:59 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 09 Sep 2011 12:00:59 +0200
changeset 1309
6caa231421cf
parent 1308
2b602a1521e7
child 1310
7fdcfa822e3e

Fixed a silly issue in the new code.

Utilities/__init__.py file | annotate | diff | comparison | revisions
UtilitiesPython2/Tools.py file | annotate | diff | comparison | revisions
--- a/Utilities/__init__.py	Fri Sep 09 11:54:20 2011 +0200
+++ b/Utilities/__init__.py	Fri Sep 09 12:00:59 2011 +0200
@@ -557,7 +557,7 @@
     """
     flags = []
     
-    pos = line.rindex(startComment)
+    pos = line.rfind(startComment)
     if pos >= 0:
         comment = line[pos + len(startComment):].strip()
         if endComment:
--- 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