From d59e2e2816562ac9e4f093fd426e9a6bfcafefbc Mon Sep 17 00:00:00 2001 From: Kevin Date: Tue, 16 Apr 2013 20:22:09 -0700 Subject: [PATCH] Use already read file instead of rereading --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index e8389985..e7acaa1c 100755 --- a/build.py +++ b/build.py @@ -85,7 +85,7 @@ def loaderGFM(var): return files[fn][filemd5] else: url = 'https://api.github.com/markdown' - payload = {'text': readfile(fn), 'mode': 'gfm', 'context': 'jonatkins/ingress-intel-total-conversion'} + payload = {'text': file, 'mode': 'gfm', 'context': 'jonatkins/ingress-intel-total-conversion'} req = urllib2.Request(url) req.add_header('Content-Type', 'application/json') gfm = urllib2.urlopen(req, json.dumps(payload)).read().replace('\n', '').replace('\'', '\\\'')