gobject-introspection r555 - trunk/giscanner



Author: johan
Date: Sun Aug 31 16:20:51 2008
New Revision: 555
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=555&view=rev

Log:
Fix up strip logic to not regress

Modified:
   trunk/giscanner/utils.py

Modified: trunk/giscanner/utils.py
==============================================================================
--- trunk/giscanner/utils.py	(original)
+++ trunk/giscanner/utils.py	Sun Aug 31 16:20:51 2008
@@ -51,6 +51,6 @@
 def strip_common_prefix(first, second):
     second = second.replace('_', '')
     for i, c in enumerate(first.upper()):
-        if c != second[i] or c > len(second):
+        if i >= len(second) or c != second[i]:
             break
     return second[i:]



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]