gobject-introspection r997 - in trunk: . giscanner



Author: juergbi
Date: Sat Jan  3 13:43:07 2009
New Revision: 997
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=997&view=rev

Log:
2009-01-03  JÃrg Billeter  <j bitron ch>

	* giscanner/ast.py:
	* giscanner/dumper.py:
	* giscanner/girparser.py:
	* giscanner/glibtransformer.py:
	* giscanner/sourcescanner.py:
	* giscanner/transformer.py:
	* giscanner/xmlwriter.py:

	Fix inconsistencies with PEP8


Modified:
   trunk/ChangeLog
   trunk/giscanner/ast.py
   trunk/giscanner/dumper.py
   trunk/giscanner/girparser.py
   trunk/giscanner/glibtransformer.py
   trunk/giscanner/sourcescanner.py
   trunk/giscanner/transformer.py
   trunk/giscanner/xmlwriter.py

Modified: trunk/giscanner/ast.py
==============================================================================
--- trunk/giscanner/ast.py	(original)
+++ trunk/giscanner/ast.py	Sat Jan  3 13:43:07 2009
@@ -428,7 +428,6 @@
 
 # FIXME: Inherit from Function
 
-
 class Callback(Node):
 
     def __init__(self, name, retval, parameters, ctype=None):

Modified: trunk/giscanner/dumper.py
==============================================================================
--- trunk/giscanner/dumper.py	(original)
+++ trunk/giscanner/dumper.py	Sat Jan  3 13:43:07 2009
@@ -88,7 +88,6 @@
             self._packages.append('gobject-introspection-1.0')
 
     # Public API
-
     def run(self):
         c_path = self._generate_tempfile('.c')
         f = open(c_path, 'w')
@@ -113,7 +112,6 @@
         return IntrospectionBinary([bin_path], self._tmpdir)
 
     # Private API
-
     def _generate_tempfile(self, suffix=''):
         tmpl = '%s-%s%s' % (self._options.namespace_name,
                             self._options.namespace_version, suffix)

Modified: trunk/giscanner/girparser.py
==============================================================================
--- trunk/giscanner/girparser.py	(original)
+++ trunk/giscanner/girparser.py	Sat Jan  3 13:43:07 2009
@@ -53,7 +53,6 @@
         self._namespace = None
 
     # Public API
-
     def parse(self, filename):
         tree = parse(filename)
         self.parse_tree(tree)
@@ -80,7 +79,6 @@
         self._include_parsing = include_parsing
 
     # Private
-
     def _add_node(self, node):
         self._namespace.nodes.append(node)
 

Modified: trunk/giscanner/glibtransformer.py
==============================================================================
--- trunk/giscanner/glibtransformer.py	(original)
+++ trunk/giscanner/glibtransformer.py	Sat Jan  3 13:43:07 2009
@@ -99,7 +99,6 @@
         self._validating = False
 
     # Public API
-
     def set_introspection_binary(self, binary):
         self._binary = binary
 
@@ -166,7 +165,6 @@
         return namespace
 
     # Private
-
     def _add_attribute(self, node, replace=False):
         node_name = node.name
         if (not replace) and node_name in self._names.names:
@@ -205,7 +203,6 @@
         self._uscore_type_names[no_uscore_prefixed] = node
 
     # Helper functions
-
     def _resolve_gtypename(self, gtype_name):
         try:
             return self._transformer.gtypename_to_giname(gtype_name,
@@ -256,7 +253,6 @@
         self._register_internal_type(type_name, node)
 
     # Parser
-
     def _parse_node(self, node):
         if isinstance(node, Enum):
             self._parse_enum(node)
@@ -516,7 +512,6 @@
             del self._names.names[maybe_class.name]
 
     # Introspection
-
     def _introspect_type(self, xmlnode):
         if xmlnode.tag in ('enum', 'flags'):
             self._introspect_enum(xmlnode)
@@ -647,7 +642,6 @@
             node.signals.append(signal)
 
     # Resolver
-
     def _resolve_type_name(self, type_name, ctype=None):
         # Workaround glib bug #548689, to be included in 2.18.0
         if type_name == "GParam":
@@ -843,7 +837,6 @@
         alias.target = self._resolve_type_name(alias.target, alias.target)
 
     # Validation
-
     def _validate(self, nodes):
         nodes = list(self._names.names.itervalues())
         i = 0

Modified: trunk/giscanner/sourcescanner.py
==============================================================================
--- trunk/giscanner/sourcescanner.py	(original)
+++ trunk/giscanner/sourcescanner.py	Sat Jan  3 13:43:07 2009
@@ -192,7 +192,6 @@
         self._cpp_options = []
 
     # Public API
-
     def set_cpp_options(self, includes, defines, undefines):
         for prefix, args in [('-I', includes),
                              ('-D', defines),
@@ -233,7 +232,6 @@
             print symbol.ident, symbol.base_type.name, symbol.type
 
     # Private
-
     def _parse(self, filenames):
         if not filenames:
             return

Modified: trunk/giscanner/transformer.py
==============================================================================
--- trunk/giscanner/transformer.py	(original)
+++ trunk/giscanner/transformer.py	Sat Jan  3 13:43:07 2009
@@ -109,7 +109,6 @@
         self._includes.add(include)
 
     # Private
-
     def _find_include(self, include):
         searchdirs = self._includepaths[:]
         for path in _xdg_data_dirs:
@@ -273,7 +272,6 @@
     # We take the annotations from the parser as strings; here we
     # want to split them into components, so:
     # (transfer full) -> {'transfer' : [ 'full' ]}
-
     def _parse_options(self, options):
         ret = {}
         ws_re = re.compile(r'\s+')

Modified: trunk/giscanner/xmlwriter.py
==============================================================================
--- trunk/giscanner/xmlwriter.py	(original)
+++ trunk/giscanner/xmlwriter.py	Sat Jan  3 13:43:07 2009
@@ -82,7 +82,6 @@
         self._indent_char = ' '
 
     # Private
-
     def _open_tag(self, tag_name, attributes=None):
         attrs = collect_attributes(
             tag_name, attributes, self._indent,
@@ -94,7 +93,6 @@
         self.write_line('</%s>' % (tag_name, ))
 
     # Public API
-
     def get_xml(self):
         return self._data.getvalue()
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]