Commits

Luke Plant  committed 0bca30a

Removed some unused code.

This should have been done in previous commit but I must have botched the
merge.

  • Participants
  • Parent commits dca8ef3
  • Branches bookings

Comments (0)

Files changed (1)

File cciw/cciwmain/utils.py

 def python_to_json(obj):
     return json_encoder.encode(obj)
 
-def all(seq):
-    return reduce(operator.and_, seq, True)
-
-class StandardReprMixin(object):
-    u"""
-    Used to add an implementation of '__repr__' that is generally
-    useful for debugging.
-
-    >>> class Foo(StandardReprMixin):
-    ...     def __init__(self):
-    ...         self.name = "blé"
-    >>>
-    >>> f = Foo()
-    >>> f.frobble = 1
-    >>> print f
-    <Foo frobble=1 name='bl\\xc3\\xa9'>
-    """
-    def __repr__(self):
-        return u"<%s %s>" % (self.__class__.__name__,
-                             u' '.join(u"%s=%r" % (k,v) for (k,v) in sorted(self.__dict__.iteritems())))
-
 
 class Lock(object):
 
     def __del__(self):
         self.handle.close()
 
-
-def _test():
-    import doctest
-    doctest.testmod()
-
-if __name__ == "__main__":
-    _test()