mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
Merge pull request #6 from jcushman/master
If gdbm is not available, fall back to anydbm.
This commit is contained in:
commit
5d09aea67d
@ -44,8 +44,12 @@ try:
|
|||||||
import dbm.gnu
|
import dbm.gnu
|
||||||
dbm_gnu = dbm.gnu
|
dbm_gnu = dbm.gnu
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import gdbm
|
try:
|
||||||
dbm_gnu = gdbm
|
import gdbm
|
||||||
|
dbm_gnu = gdbm
|
||||||
|
except ImportError:
|
||||||
|
import anydbm
|
||||||
|
dbm_gnu = anydbm
|
||||||
|
|
||||||
try:
|
try:
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
|
Loading…
x
Reference in New Issue
Block a user