sphinx.util.inspect: Use absolute_import

This commit is contained in:
Takeshi KOMIYA 2017-06-12 00:27:29 +09:00
parent fe71556191
commit 2317df9c84

View File

@ -8,8 +8,10 @@
:copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
from __future__ import absolute_import
import re
import inspect
from six import PY3, binary_type
from six.moves import builtins
@ -20,10 +22,6 @@ if False:
# For type annotation
from typing import Any, Callable, List, Tuple, Type # NOQA
# this imports the standard library inspect module without resorting to
# relatively import this module
inspect = __import__('inspect')
memory_address_re = re.compile(r' at 0x[0-9a-f]{8,16}(?=>)', re.IGNORECASE)