1. Bernhard Biskup
  2. araldo

Commits

bb b...@gmx.de  committed e9c2116 Draft

pylint

  • Participants
  • Parent commits aaeed32
  • Branches default

Comments (0)

Files changed (1)

File araldo/util.py

View file
+""" Miscellaneous utilities for application and testing
+""" 
 from StringIO import StringIO
 import pprint
 
 def dump_obj(obj, logger, description=""):
     """ Dump a pretty-printed python object to log
     """
-    s = StringIO()
-    pprint.pprint(obj, stream=s)
+    stream = StringIO()
+    pprint.pprint(obj, stream=stream)
     if description:
-        descriptionStr = "%s: " % description
+        description_str = "%s: " % description
     else:
-        descriptionStr = ""
-    logger.debug("%s%s", descriptionStr, s.getvalue())
+        description_str = ""
+    logger.debug("%s%s", description_str, stream.getvalue())