summaryrefslogtreecommitdiff
path: root/tools/g-ir-scanner
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-09 13:07:11 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-09 13:07:11 +0000
commite48a8b65b61dade42f23a3549ceb1b08afbe227b (patch)
treef4893526b9a90ce2a272255b6c8b8902d515cd08 /tools/g-ir-scanner
parente714252256a2e0bbf47abeb38d83992069b3b17f (diff)
downloadgobject-introspection-e48a8b65b61dade42f23a3549ceb1b08afbe227b.tar.gz
PEP8ify
2008-08-09 Johan Dahlin <johan@gnome.org> * giscanner/__init__.py: * giscanner/ast.py: * giscanner/cgobject.py: * giscanner/gidlparser.py: * giscanner/gidlwriter.py: * giscanner/girparser.py: * giscanner/girwriter.py: * giscanner/glibast.py: * giscanner/glibtransformer.py: * giscanner/odict.py: * giscanner/sourcescanner.py: * giscanner/transformer.py: * giscanner/utils.py: * giscanner/xmlwriter.py: * tools/g-ir-scanner: PEP8ify svn path=/trunk/; revision=341
Diffstat (limited to 'tools/g-ir-scanner')
-rwxr-xr-xtools/g-ir-scanner10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/g-ir-scanner b/tools/g-ir-scanner
index 07372431..e1ffa2b1 100755
--- a/tools/g-ir-scanner
+++ b/tools/g-ir-scanner
@@ -82,8 +82,10 @@ def _get_option_parser():
return parser
+
def _error(msg):
- raise SystemExit('ERROR: %s' % (msg,))
+ raise SystemExit('ERROR: %s' % (msg, ))
+
def main(args):
parser = _get_option_parser()
@@ -100,10 +102,10 @@ def main(args):
elif options.format == 'gidl':
from giscanner.gidlwriter import GIDLWriter as Writer
else:
- _error("Unknown format: %s" % (options.format,))
+ _error("Unknown format: %s" % (options.format, ))
for package in options.packages:
- output = commands.getoutput('pkg-config --cflags %s' % (package,))
+ output = commands.getoutput('pkg-config --cflags %s' % (package, ))
pkg_options, unused = parser.parse_args(output.split())
options.cpp_includes.extend(pkg_options.cpp_includes)
options.cpp_defines.extend(pkg_options.cpp_defines)
@@ -114,7 +116,7 @@ def main(args):
if (arg.endswith('.c') or
arg.endswith('.h')):
if not os.path.exists(arg):
- _error('%s: no such a file or directory' % (arg,))
+ _error('%s: no such a file or directory' % (arg, ))
filenames.append(arg)
# Run the preprocessor, tokenize and construct simple