summaryrefslogtreecommitdiff
path: root/vcgutils.py
diff options
context:
space:
mode:
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-07-19 02:07:55 +0200
committerNicolas Chauvat <nicolas.chauvat@logilab.fr>2009-07-19 02:07:55 +0200
commita1cdde3320add8bbe4557639488bb4d2ef2861fd (patch)
treef579949c7a7fb9b4efb8a6ccdfcd35484854662b /vcgutils.py
parent6bb5a230a8df5ed2fe417c7b85491073da50dfd3 (diff)
downloadlogilab-common-a1cdde3320add8bbe4557639488bb4d2ef2861fd.tar.gz
[cleanup] delete-trailing-whitespace
Diffstat (limited to 'vcgutils.py')
-rw-r--r--vcgutils.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcgutils.py b/vcgutils.py
index d25cb35..81e8eec 100644
--- a/vcgutils.py
+++ b/vcgutils.py
@@ -39,7 +39,7 @@ ATTRS_VAL = {
# meaning of possible values:
# O -> string
-# 1 -> int
+# 1 -> int
# list -> value in list
GRAPH_ATTRS = {
'title' : 0,
@@ -128,7 +128,7 @@ def latin_to_vcg(st):
class VCGPrinter:
"""A vcg graph writer.
"""
-
+
def __init__(self, output_stream):
self._stream = output_stream
self._indent = ''
@@ -166,7 +166,7 @@ class VCGPrinter:
# private ##################################################################
-
+
def _write_attributes(self, attributes_dict, **args):
"""write graph, node or edge attributes
"""
@@ -187,12 +187,12 @@ possible attributes are %s''' % (key, attributes_dict.keys()))
else:
raise Exception('''value %s isn\'t correct for attribute %s
correct values are %s''' % (value, key, _type))
-
+
def _inc_indent(self):
"""increment indentation
"""
self._indent = ' %s' % self._indent
-
+
def _dec_indent(self):
"""decrement indentation
"""