Skip to content

Commit

Permalink
Merge 3c7e8a6 into fee874c
Browse files Browse the repository at this point in the history
  • Loading branch information
kizetsu committed Jan 26, 2016
2 parents fee874c + 3c7e8a6 commit 8d8d30e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions thefuck/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import dbm
import anydbm
import os
import pickle
import pkg_resources
Expand All @@ -16,10 +16,10 @@

DEVNULL = open(os.devnull, 'w')

shelve_open_errors = (dbm.error, )
if six.PY2:
import gdbm
shelve_open_errors += (gdbm.error, )
shelve_open_errors = (anydbm.error, )
#if six.PY2:
# import gdbm
# shelve_open_errors += (gdbm.error, )


def memoize(fn):
Expand Down

0 comments on commit 8d8d30e

Please sign in to comment.