diff options
author | Ilya Etingof <etingof@gmail.com> | 2017-12-03 08:53:14 +0100 |
---|---|---|
committer | Ilya Etingof <etingof@gmail.com> | 2017-12-03 08:53:14 +0100 |
commit | 1f38b8e5d62dab7ff4ddabc425eeef908a78a4c3 (patch) | |
tree | 490707f3f3945bb191999a36e6bc65d2151055ac /pyasn1/type | |
parent | df3a2b7781c72ffc703e80d788618d93634e17ab (diff) | |
download | pyasn1-1f38b8e5d62dab7ff4ddabc425eeef908a78a4c3.tar.gz |
NoValue.__repr__() should report object address in hex
Diffstat (limited to 'pyasn1/type')
-rw-r--r-- | pyasn1/type/base.py | 2 |
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() |