Skip to content

Commit d06d366

Browse files
committed
mmap is available in py27, now the minimum version
1 parent 59b21c8 commit d06d366

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

xlrd/__init__.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,11 @@
2323
# print >> sys.stderr, "...importing encodings"
2424
import encodings
2525

26-
try:
27-
import mmap
28-
MMAP_AVAILABLE = 1
29-
except ImportError:
30-
MMAP_AVAILABLE = 0
31-
USE_MMAP = MMAP_AVAILABLE
3226

3327
def open_workbook(filename=None,
3428
logfile=sys.stdout,
3529
verbosity=0,
36-
use_mmap=USE_MMAP,
30+
use_mmap=True,
3731
file_contents=None,
3832
encoding_override=None,
3933
formatting_info=False,

0 commit comments

Comments
 (0)