From: Daniel Morrison Date: Sun, 16 Nov 2014 05:17:14 +0000 (-0500) Subject: mmap does not actually work like that. X-Git-Url: https://git.devinivas.org/?a=commitdiff_plain;h=77c5f0eabd2f13095fad24083084dc9964bfb81b;p=chevron.git mmap does not actually work like that. - Remove mmap - Just load the entire file into memory (should be fine) --- diff --git a/entei.py b/entei.py index 6da899d..6f01976 100755 --- a/entei.py +++ b/entei.py @@ -2,7 +2,6 @@ import json -import mmap from sys import argv @@ -47,7 +46,7 @@ def tokenize(template): } try: - mmap.mmap(template.fileno()) + template = template.read() except AttributeError: pass