summaryrefslogtreecommitdiff
path: root/pyasn1/type/tag.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyasn1/type/tag.py')
-rw-r--r--pyasn1/type/tag.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/pyasn1/type/tag.py b/pyasn1/type/tag.py
index b46f491..dd33e49 100644
--- a/pyasn1/type/tag.py
+++ b/pyasn1/type/tag.py
@@ -64,8 +64,10 @@ class Tag(object):
self.__hash = hash(self.__tagClassId)
def __repr__(self):
- representation = '[%s:%s:%s]' % (self.__tagClass, self.__tagFormat, self.__tagId)
- return '<%s object at 0x%x tag %s>' % (self.__class__.__name__, id(self), representation)
+ representation = '[%s:%s:%s]' % (
+ self.__tagClass, self.__tagFormat, self.__tagId)
+ return '<%s object, tag %s>' % (
+ self.__class__.__name__, representation)
def __eq__(self, other):
return self.__tagClassId == other
@@ -199,7 +201,7 @@ class TagSet(object):
else:
representation = 'untagged'
- return '<%s object at 0x%x %s>' % (self.__class__.__name__, id(self), representation)
+ return '<%s object, %s>' % (self.__class__.__name__, representation)
def __add__(self, superTag):
return self.__class__(self.__baseTag, *self.__superTags + (superTag,))