home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2010 November / maximum-cd-2010-11.iso / DiscContents / calibre-0.7.13.msi / file_1846 (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-08-06  |  1.4 KB  |  31 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. __docformat__ = 'restructuredtext en'
  5.  
  6. class IDisplayFormatter(object):
  7.     kind = 'display'
  8.     identifier = None
  9.     
  10.     def __call__(self, obj):
  11.         raise NotImplementedError
  12.  
  13.  
  14.  
  15. class ReprDisplayFormatter(IDisplayFormatter):
  16.     identifier = 'repr'
  17.     
  18.     def __call__(self, obj):
  19.         return repr(obj)
  20.  
  21.  
  22.  
  23. class PPrintDisplayFormatter(IDisplayFormatter):
  24.     identifier = 'pprint'
  25.     
  26.     def __call__(self, obj):
  27.         import pprint
  28.         return pprint.pformat(obj)
  29.  
  30.  
  31.