Commit 4269ec8a by Jiri Techet

Open database even when mmap is missing

parent 51997a7a
......@@ -100,7 +100,7 @@ class GeoIP(object):
warnings.warn("MMAP_CACHE cannot be used without a mmap module")
self._flags &= ~const.MMAP_CACHE
elif self._flags & const.MMAP_CACHE:
if self._flags & const.MMAP_CACHE:
f = open(filename, 'rb')
access = mmap.ACCESS_READ
self._filehandle = mmap.mmap(f.fileno(), 0, access=access)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment