summaryrefslogtreecommitdiff
path: root/debian/patches/gdbm-import.diff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-09-29 13:40:02 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-09-29 13:40:02 +0300
commit424a50000a78fff715de4417dba9b4498aeeee4c (patch)
treed27f003c7d140fef24efd1b2ca1325ae099154b9 /debian/patches/gdbm-import.diff
downloadpython3.5-debian.tar.gz
Imported python3.5 3.5.4-4debian/3.5.4-4debian
Diffstat (limited to 'debian/patches/gdbm-import.diff')
-rw-r--r--debian/patches/gdbm-import.diff12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/patches/gdbm-import.diff b/debian/patches/gdbm-import.diff
new file mode 100644
index 0000000..2be2934
--- /dev/null
+++ b/debian/patches/gdbm-import.diff
@@ -0,0 +1,12 @@
+# DP: suggest installation of python3-gdbm package on failing _gdbm import
+
+--- 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')