1. Jakub Wilk
  2. i18nspector

Commits

Jakub Wilk  committed 3d7d84d

lib.tags: remove boring __repr__ methods.

  • Participants
  • Parent commits 7b919fc
  • Branches default

Comments (0)

Files changed (1)

File lib/tags.py

View file
     def __str__(self):
         return str(self._name)
 
-    def __repr__(self):
-        return '<OrderedObject: {!r}>'.format(self._name)
-
 class OrderedGroup(object):
 
     def __init__(self, name, *items):
     def __getitem__(self, name):
         return self._objects[name]
 
-    def __repr__(self):
-        return '<OrderedGroup({type!r}): {objects}>'.format(
-            type=self._child_type.__name__,
-            objects=', '.join(self._objects.keys())
-        )
-
 severities = OrderedGroup('Severity',
     'pedantic',
     'wishlist',