From c968103a2e2fe9f34cb6af04208efc9883eab361 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Mon, 1 May 2017 01:38:30 +0100 Subject: [PATCH] catacomb/__init__.py: Use `%#x' rather than `hex' now. Organization: Straylight/Edgeware From: Mark Wooding The reason `%x' used not to work is the recently-fixed bug whereby conversions to `int' raised exceptions rather than returning `long'. --- catacomb/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- [mdw]