Sections
Timeline
Sub-Sections
Download
Unified Diff
Zip Archive
Metanav
Preferences
About Trac
Links
Slowchop Studios
Gerald Kaszuba
Advertisement

Changeset 20

Show
Ignore:
Timestamp:
22/11/07 04:39:30 (14 months ago)
Author:
gak
Message:

betterprint to 'act' like pprint so you can permanently replace it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • betterprint/trunk/betterprint.py

    r19 r20  
    1414    def pprint(self, object): 
    1515        self._format(object, self._stream, self._indent, self._depth, {}, 0) 
     16        self._stream.write('\x1b[0m') 
    1617        self._stream.write('\n') 
    1718 
     
    125126pprint = __pprint 
    126127pformat = __pformat 
     128isreadable = orig_pprint.isreadable 
     129isrecursive = orig_pprint.isrecursive 
     130saferepr = orig_pprint.saferepr 
     131PrettyPrinter = orig_pprint.PrettyPrinter 
    127132 
    128133if __name__ == '__main__':