diff options
author | Johan Dahlin <johan@gnome.org> | 2008-08-31 15:56:56 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-08-31 15:56:56 +0000 |
commit | 9133d339bfedbd362fda854a1bfbd1ded1ddb3a6 (patch) | |
tree | f4efa7febef03b827f09452454aa8c14b85fb4c0 /giscanner/utils.py | |
parent | 5f7f6195afcd4bfdaf1b8e035697a7ccdc896f19 (diff) | |
download | gobject-introspection-9133d339bfedbd362fda854a1bfbd1ded1ddb3a6.tar.gz |
Clean up a huge if. Do not add methods or constructors to enums/flags.
2008-08-31 Johan Dahlin <johan@gnome.org>
* giscanner/glibtransformer.py:
Clean up a huge if. Do not add methods or constructors
to enums/flags.
* giscanner/utils.py:
second might be longer than first, check that.
svn path=/trunk/; revision=550
Diffstat (limited to 'giscanner/utils.py')
-rw-r--r-- | giscanner/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/utils.py b/giscanner/utils.py index bd292f1e..275e73ba 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]: + if c != second[i] or c > len(second): break return second[i:] |