summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJohan Dahlin <johan@src.gnome.org>2008-10-30 15:37:19 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-10-30 15:37:19 +0000
commit637ac4d5a0cee335b12582909e7561380ba8203d (patch)
treeb28cccaa8e81970b2a5f00fd29928bd8d0bba857 /tools
parent5abcbe617d52d201809b04ec3451f54c82b75a05 (diff)
downloadgobject-introspection-637ac4d5a0cee335b12582909e7561380ba8203d.tar.gz
Rewrap and reorder includes
svn path=/trunk/; revision=839
Diffstat (limited to 'tools')
-rwxr-xr-xtools/g-ir-scanner14
1 files changed, 9 insertions, 5 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index e4c1862d..7d89897a 100755
--- a/tools/g-ir-scanner
+++ b/tools/g-ir-scanner
@@ -35,11 +35,11 @@ else:
'site-packages')
sys.path.insert(0, path)
+from giscanner.ast import Include
from giscanner.glibtransformer import GLibTransformer
+from giscanner.minixpath import myxpath, xpath_assert
from giscanner.sourcescanner import SourceScanner
from giscanner.transformer import Transformer
-from giscanner.ast import Include
-from giscanner.minixpath import myxpath, xpath_assert
def _get_option_parser():
@@ -62,7 +62,8 @@ def _get_option_parser():
help="directories to search for libraries")
parser.add_option("-n", "--namespace",
action="store", dest="namespace_name",
- help="name of namespace for this unit, also used as --strip-prefix default")
+ help=("name of namespace for this unit, also "
+ "used as --strip-prefix default"))
parser.add_option("", "--nsversion",
action="store", dest="namespace_version",
help="version of namespace for this unit")
@@ -180,7 +181,8 @@ def main(args):
if options.inject:
if len(args) != 4:
- _error('Need three filenames; e.g. g-ir-scanner --inject Source.gir Additions.xml SourceOut.gir')
+ _error('Need three filenames; e.g. g-ir-scanner '
+ '--inject Source.gir Additions.xml SourceOut.gir')
return inject(*args[1:4])
if options.xpath_assertions:
@@ -256,7 +258,9 @@ def main(args):
ss.parse_macros(filenames)
# Transform the C symbols into AST nodes
- transformer = Transformer(ss, options.namespace_name, options.namespace_version)
+ transformer = Transformer(ss,
+ options.namespace_name,
+ options.namespace_version)
if options.strip_prefix:
transformer.set_strip_prefix(options.strip_prefix)
else: