gobject-introspection r555 - trunk/giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r555 - trunk/giscanner
- Date: Sun, 31 Aug 2008 16:20:52 +0000 (UTC)
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]