summaryrefslogtreecommitdiff
path: root/pyasn1/type/constraint.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/type/constraint.py')
-rw-r--r--pyasn1/type/constraint.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyasn1/type/constraint.py b/pyasn1/type/constraint.py
index 656e203..807c827 100644
--- a/pyasn1/type/constraint.py
+++ b/pyasn1/type/constraint.py
@@ -37,10 +37,11 @@ class AbstractConstraint(object):
)
def __repr__(self):
- representation = '%s object at 0x%x' % (self.__class__.__name__, id(self))
+ representation = '%s object' % (self.__class__.__name__)
if self._values:
- representation += ' consts %s' % ', '.join([repr(x) for x in self._values])
+ representation += ', consts %s' % ', '.join(
+ [repr(x) for x in self._values])
return '<%s>' % representation