From 1f38b8e5d62dab7ff4ddabc425eeef908a78a4c3 Mon Sep 17 00:00:00 2001 From: Ilya Etingof Date: Sun, 3 Dec 2017 08:53:14 +0100 Subject: NoValue.__repr__() should report object address in hex --- pyasn1/type/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.1