projects
/
python3.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5adb74d
)
gdbm-import
author
Matthias Klose
<doko@debian.org>
Tue, 22 Feb 2022 13:54:07 +0000
(13:54 +0000)
committer
Matthias Klose
<doko@debian.org>
Tue, 22 Feb 2022 13:54:07 +0000
(13:54 +0000)
# DP: suggest installation of python3-gdbm package on failing _gdbm import
# DP: suggest installation of python3-gdbm package on failing _gdbm import
Gbp-Pq: Name gdbm-import.diff
Lib/dbm/gnu.py
patch
|
blob
|
history
diff --git
a/Lib/dbm/gnu.py
b/Lib/dbm/gnu.py
index b07a1defffdf2fcc8532f52ed49751fb0733a1a7..24ba36f67615a84c13de7425fdbe1f911f4e09aa 100644
(file)
--- a/
Lib/dbm/gnu.py
+++ b/
Lib/dbm/gnu.py
@@
-1,3
+1,6
@@
"""Provide the _gdbm module as a dbm submodule."""
-from _gdbm import *
+try:
+ from _gdbm import *
+except ImportError as msg:
+ raise ImportError(str(msg) + ', please install the python3-gdbm package')