diff options
author | Xiang Zhang <angwerzx@126.com> | 2018-06-20 21:23:30 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-20 21:23:30 +0800 |
commit | b248e957a818e268cfb221f3b94b37bc5672456a (patch) | |
tree | 121b943a976ef4d5487c5307b733bde366ab9cb8 /Lib/test/pythoninfo.py | |
parent | 16eb3bcdb22be4d82dc597b92b7154fcb11c6479 (diff) | |
download | cpython-git-b248e957a818e268cfb221f3b94b37bc5672456a.tar.gz |
Fix compiling error when missing gdbm version macros (GH-7823)
Diffstat (limited to 'Lib/test/pythoninfo.py')
-rw-r--r-- | Lib/test/pythoninfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/pythoninfo.py b/Lib/test/pythoninfo.py index 3958764a6a..f058185c2f 100644 --- a/Lib/test/pythoninfo.py +++ b/Lib/test/pythoninfo.py @@ -527,11 +527,11 @@ def collect_cc(info_add): def collect_gdbm(info_add): try: - import _gdbm + from _gdbm import _GDBM_VERSION except ImportError: return - info_add('gdbm.GDBM_VERSION', '.'.join(map(str, _gdbm._GDBM_VERSION))) + info_add('gdbm.GDBM_VERSION', '.'.join(map(str, _GDBM_VERSION))) def collect_info(info): |