summaryrefslogtreecommitdiff
path: root/giscanner/utils.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-08-31 16:20:51 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-31 16:20:51 +0000
commit701a478094fe09d85a126bb2f6ed8d389748129d (patch)
tree46741494e880ccb9a09ad4bcb376de661d17b397 /giscanner/utils.py
parent1d67f33987f2e179a64551db8af9c12f302d164c (diff)
downloadgobject-introspection-701a478094fe09d85a126bb2f6ed8d389748129d.tar.gz
Fix up strip logic to not regress
svn path=/trunk/; revision=555
Diffstat (limited to 'giscanner/utils.py')
-rw-r--r--giscanner/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py
index 275e73ba..1a45c75d 100644
--- a/giscanner/utils.py
+++ b/giscanner/utils.py
@@ -51,6 +51,6 @@ def extract_libtool(libname):
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:]