From: Mark Wooding Date: Mon, 1 May 2017 00:38:30 +0000 (+0100) Subject: catacomb/__init__.py: Use `%#x' rather than `hex' now. X-Git-Tag: 1.2.0~35 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb-python/commitdiff_plain/c968103a2e2fe9f34cb6af04208efc9883eab361 catacomb/__init__.py: Use `%#x' rather than `hex' now. The reason `%x' used not to work is the recently-fixed bug whereby conversions to `int' raised exceptions rather than returning `long'. --- diff --git a/catacomb/__init__.py b/catacomb/__init__.py index 4c225e7..43d74d9 100644 --- a/catacomb/__init__.py +++ b/catacomb/__init__.py @@ -229,7 +229,7 @@ class _tmp: _augment(PrimeField, _tmp) class _tmp: - def __repr__(me): return '%s(%sL)' % (type(me).__name__, hex(me.p)) + def __repr__(me): return '%s(%#xL)' % (type(me).__name__, me.p) def ec(me, a, b): return ECBinProjCurve(me, a, b) _augment(BinField, _tmp)