[gobject-introspection] giscanner: remove unused variables and imports
- From: Dieter Verfaillie <dieterv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] giscanner: remove unused variables and imports
- Date: Tue, 9 Apr 2013 21:22:50 +0000 (UTC)
commit 93ea709aa40f84e9c5677a7faab345a30072a968
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date: Fri Feb 15 07:06:18 2013 +0100
giscanner: remove unused variables and imports
https://bugzilla.gnome.org/show_bug.cgi?id=697615
giscanner/docwriter.py | 6 +++---
giscanner/maintransformer.py | 4 +---
giscanner/sectionparser.py | 1 -
3 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py
index 7924b2d..b3716ec 100644
--- a/giscanner/docwriter.py
+++ b/giscanner/docwriter.py
@@ -219,7 +219,7 @@ class DocFormatter(object):
try:
prop = self._find_thing(type_node.properties, props['property_name'])
- except (AttributeError, KeyError), e:
+ except (AttributeError, KeyError):
return match
return self.format_xref(prop)
@@ -231,7 +231,7 @@ class DocFormatter(object):
try:
signal = self._find_thing(type_node.signals, props['signal_name'])
- except (AttributeError, KeyError), e:
+ except (AttributeError, KeyError):
return match
return self.format_xref(signal)
@@ -260,7 +260,7 @@ class DocFormatter(object):
def _process_parameter(self, node, match, props):
try:
parameter = node.get_parameter(props['param_name'])
- except (AttributeError, ValueError), e:
+ except (AttributeError, ValueError):
return match
return '<code>%s</code>' % (self.format_parameter_name(node, parameter), )
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 049ba9b..8cfb80f 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -35,9 +35,7 @@ from .annotationparser import (OPT_ALLOW_NONE, OPT_ARRAY, OPT_ATTRIBUTE,
OPT_ARRAY_LENGTH, OPT_ARRAY_ZERO_TERMINATED,
OPT_CONSTRUCTOR, OPT_METHOD,
OPT_TRANSFER_NONE, OPT_TRANSFER_FLOATING)
-from .annotationparser import AnnotationParser
-from .transformer import TransformerException
-from .utils import to_underscores, to_underscores_noprefix
+from .utils import to_underscores_noprefix
class MainTransformer(object):
diff --git a/giscanner/sectionparser.py b/giscanner/sectionparser.py
index caf6bf2..330471b 100644
--- a/giscanner/sectionparser.py
+++ b/giscanner/sectionparser.py
@@ -18,7 +18,6 @@
#
import re
-import sys
class SectionFile(object):
def __init__(self, sections):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]