summaryrefslogtreecommitdiff
path: root/giscanner/utils.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-14 09:47:58 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-14 09:47:58 +0000
commitadc8cf23f53cccd8825b8832e6f38d023565534d (patch)
tree5451a07cd6789e250f5df4847179f8281461b00a /giscanner/utils.py
parentb0d43bbf08a9ebcba278af1601f0e83bdc78ff74 (diff)
downloadgobject-introspection-adc8cf23f53cccd8825b8832e6f38d023565534d.tar.gz
Refactor a bit, avoid isinstance and add a method for each type we parse.
2008-08-14 Johan Dahlin <johan@gnome.org> * giscanner/glibtransformer.py: * giscanner/utils.py: Refactor a bit, avoid isinstance and add a method for each type we parse. svn path=/trunk/; revision=367
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 22656536..bc702910 100644
--- a/giscanner/utils.py
+++ b/giscanner/utils.py
@@ -39,7 +39,7 @@ def to_underscores(name):
_libtool_pat = re.compile("dlname='([A-z0-9\.\-\+]+)'\n")
-def resolve_libtool(libname):
+def extract_libtool(libname):
data = open(libname).read()
filename = _libtool_pat.search(data).groups()[0]
libname = os.path.join(os.path.dirname(libname),