From ced8597fd20dae5d1239b17e458d5f76690239e4 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Wed, 25 Apr 2018 11:46:04 -0400 Subject: [PATCH] Fix mmap-removal patch --- pandas/patches/avoid-mmap.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/patches/avoid-mmap.patch b/pandas/patches/avoid-mmap.patch index e0a23feea..4e944de43 100644 --- a/pandas/patches/avoid-mmap.patch +++ b/pandas/patches/avoid-mmap.patch @@ -9,7 +9,7 @@ diff -ru pandas-0.22.0.orig/pandas/io/common.py pandas-0.22.0/pandas/io/common.p +try: + from mmap import mmap +except ImportError: -+ mmap = None ++ mmap = type(None) from contextlib import contextmanager, closing from pandas.compat import StringIO, BytesIO, string_types, text_type