home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- __docformat__ = 'restructuredtext en'
-
- class IDisplayFormatter(object):
- kind = 'display'
- identifier = None
-
- def __call__(self, obj):
- raise NotImplementedError
-
-
-
- class ReprDisplayFormatter(IDisplayFormatter):
- identifier = 'repr'
-
- def __call__(self, obj):
- return repr(obj)
-
-
-
- class PPrintDisplayFormatter(IDisplayFormatter):
- identifier = 'pprint'
-
- def __call__(self, obj):
- import pprint
- return pprint.pformat(obj)
-
-
-