From 324e532d6081d9b9ea90bf3945cecfc792264f8d Mon Sep 17 00:00:00 2001 From: xghrl Date: Wed, 27 Jan 2016 08:10:06 +0000 Subject: [PATCH] fix %x string format to compatible with Python 3.5 --- doc/build/core/custom_types.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/build/core/custom_types.rst b/doc/build/core/custom_types.rst index 7fca1a537b..22dd52050a 100644 --- a/doc/build/core/custom_types.rst +++ b/doc/build/core/custom_types.rst @@ -153,7 +153,7 @@ binary in CHAR(16) if desired:: return str(value) else: if not isinstance(value, uuid.UUID): - return "%.32x" % uuid.UUID(value) + return "%.32x" % uuid.UUID(value).int else: # hexstring return "%.32x" % value -- 2.47.2