diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-18 23:28:24 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-08-18 23:28:24 +0300 |
commit | c1ffe31653d24c6bf05bdfa1b11cf055491c4822 (patch) | |
tree | a58a9daa2864a97b1ff2bc20bc41830b1efc0d39 /pylint/pyreverse | |
parent | 1e6c856095451396d8f0edaefe509df085e8c900 (diff) | |
download | pylint-c1ffe31653d24c6bf05bdfa1b11cf055491c4822.tar.gz |
Fix pylint warnings for the code imported from logilab-common.
Diffstat (limited to 'pylint/pyreverse')
-rw-r--r-- | pylint/pyreverse/vcgutils.py | 6 | ||||
-rw-r--r-- | pylint/pyreverse/writer.py | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/pylint/pyreverse/vcgutils.py b/pylint/pyreverse/vcgutils.py index 256e649..b9ac7b4 100644 --- a/pylint/pyreverse/vcgutils.py +++ b/pylint/pyreverse/vcgutils.py @@ -28,8 +28,6 @@ See vcg's documentation for explanation about the different values that maybe used for the functions parameters. """ -import string - ATTRS_VAL = { 'algos': ('dfs', 'tree', 'minbackward', 'left_to_right', 'right_to_left', @@ -161,7 +159,7 @@ class VCGPrinter: """ self._stream.write( '%s%sedge: {sourcename:"%s" targetname:"%s"' % ( - self._indent, edge_type, from_node, to_node)) + self._indent, edge_type, from_node, to_node)) self._write_attributes(EDGE_ATTRS, **args) self._stream.write('}\n') @@ -173,7 +171,7 @@ class VCGPrinter: """ for key, value in args.items(): try: - _type = attributes_dict[key] + _type = attributes_dict[key] except KeyError: raise Exception('''no such attribute %s possible attributes are %s''' % (key, attributes_dict.keys())) diff --git a/pylint/pyreverse/writer.py b/pylint/pyreverse/writer.py index 48cbe4e..4c7d69d 100644 --- a/pylint/pyreverse/writer.py +++ b/pylint/pyreverse/writer.py @@ -105,7 +105,7 @@ class DotWriter(DiagramWriter): """initialize DotWriter and add options for layout. """ layout = dict(rankdir="BT") - self.printer = DotBackend(basename, additionnal_param=layout) + self.printer = DotBackend(basename, additional_param=layout) self.file_name = file_name def get_title(self, obj): |