From 77c5f0eabd2f13095fad24083084dc9964bfb81b Mon Sep 17 00:00:00 2001 From: Daniel Morrison Date: Sun, 16 Nov 2014 00:17:14 -0500 Subject: [PATCH] mmap does not actually work like that. - Remove mmap - Just load the entire file into memory (should be fine) --- entei.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.3