Skip to content

Commit

Permalink
Remove pretty printer hack
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Nov 3, 2018
1 parent 9ca5b04 commit c734897
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions donfig/config_obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,9 +619,3 @@ def ensure_file(self, source, destination=None, comment=True):
os.remove(tmp)
except OSError:
pass

# Hack to make pretty printing work easily
def _pprint_handler(object, stream, indent, allowance, context, level):
return object.pprint(stream=stream, indent=indent)

pprint.PrettyPrinter._dispatch[Config.__repr__] = _pprint_handler

0 comments on commit c734897

Please sign in to comment.