gobject-introspection r263 - trunk/tools
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r263 - trunk/tools
- Date: Sat, 3 May 2008 16:01:06 +0100 (BST)
Author: johan
Date: Sat May 3 15:01:06 2008
New Revision: 263
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=263&view=rev
Log:
Avoid a tiny bit of duplication
Modified:
trunk/tools/g-ir-scanner
Modified: trunk/tools/g-ir-scanner
==============================================================================
--- trunk/tools/g-ir-scanner (original)
+++ trunk/tools/g-ir-scanner Sat May 3 15:01:06 2008
@@ -118,14 +118,13 @@
glibtransformer.parse(nodes)
if options.format == 'gir':
- from giscanner.girwriter import GIRWriter
- writer = GIRWriter(options.namespace, glibtransformer.get_nodes())
+ from giscanner.girwriter import GIRWriter as Writer
elif options.format == 'gidl':
- from giscanner.gidlwriter import GIDLWriter
- writer = GIDLWriter(options.namespace, glibtransformer.get_nodes())
+ from giscanner.gidlwriter import GIDLWriter as Writer
else:
raise SystemExit("Unknown format: %s" % (options.format,))
+ writer = Writer(options.namespace, glibtransformer.get_nodes())
data = writer.get_xml()
if options.output:
fd = open(options.output, "w")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]