diff options
| author | Georg Brandl <georg@python.org> | 2011-01-08 18:44:06 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2011-01-08 18:44:06 +0100 |
| commit | be5da964de291d35a685bb4a52c46aa07af3fb2b (patch) | |
| tree | 448b8576265dc98fd08e0a95b8cd5f7e869faf47 /sphinx/util/inspect.py | |
| parent | d599a3942d8a0172277001433eb5efd05b6a6a81 (diff) | |
| parent | 41aa9b9e962403f7e305309b4eff16cd770f6257 (diff) | |
| download | sphinx-be5da964de291d35a685bb4a52c46aa07af3fb2b.tar.gz | |
merge with https://bitbucket.org/langacore/sphinx
Diffstat (limited to 'sphinx/util/inspect.py')
| -rw-r--r-- | sphinx/util/inspect.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sphinx/util/inspect.py b/sphinx/util/inspect.py index c136393f..6b2beffa 100644 --- a/sphinx/util/inspect.py +++ b/sphinx/util/inspect.py @@ -9,9 +9,13 @@ :license: BSD, see LICENSE for details. """ -inspect = __import__('inspect') import sys +# this imports the standard library inspect module without resorting to +# relatively import this module +inspect = __import__('inspect') + + if sys.version_info >= (2, 5): from functools import partial def getargspec(func): |
