summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2017-12-03 08:53:14 +0100
committerIlya Etingof <etingof@gmail.com>2017-12-03 08:53:14 +0100
commit1f38b8e5d62dab7ff4ddabc425eeef908a78a4c3 (patch)
tree490707f3f3945bb191999a36e6bc65d2151055ac
parentdf3a2b7781c72ffc703e80d788618d93634e17ab (diff)
downloadpyasn1-git-1f38b8e5d62dab7ff4ddabc425eeef908a78a4c3.tar.gz
NoValue.__repr__() should report object address in hex
-rw-r--r--pyasn1/type/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyasn1/type/base.py b/pyasn1/type/base.py
index 9f52285..e42bad1 100644
--- a/pyasn1/type/base.py
+++ b/pyasn1/type/base.py
@@ -221,7 +221,7 @@ class NoValue(object):
raise error.PyAsn1Error('Attempted "%s" operation on ASN.1 schema object' % attr)
def __repr__(self):
- return '<%s object at %s>' % (self.__class__.__name__, id(self))
+ return '<%s object at 0x%x>' % (self.__class__.__name__, id(self))
noValue = NoValue()