From 2eeaceed088ef1b2848d3c567be91b5c4c80373c Mon Sep 17 00:00:00 2001 From: JojoBoulix Date: Thu, 9 Jun 2016 09:11:48 +0200 Subject: [PATCH] Remove all memory addresses from autodoc Change `object_desription()` to remove all hexadecimal addresses, not only those at the end of the string. The `repr()` of some objects is generated by taking the `repr()` of one object and then adding stuff to it. Therefore, memory addresses like `` do not need to occur at the end of the string. --- sphinx/util/inspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index 5dc2008c8..dbd578ec4 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -20,7 +20,7 @@ from sphinx.util import force_decode # relatively import this module inspect = __import__('inspect') -memory_address_re = re.compile(r' at 0x[0-9a-f]{8,16}(?=>$)') +memory_address_re = re.compile(r' at 0x[0-9a-f]{8,16}(?=>)') if PY3: