Fix ./run-checks --static #1468

Merged
merged 1 commit into from Jul 1, 2016
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Split

Fix ./run-checks --static

Python doesn't like LANG=C.UTF-8 so just open the files
using UTF-8 directly
  • Loading branch information...
commit b66d3ea328ee42d3d4f56ed9736c315833dee67d @drizzt drizzt committed Jul 1, 2016
View
@@ -7,7 +7,7 @@
# http://pythonhosted.org/Markdown/
import sys
-
+import codecs
def lint_li(fname, text):
"""Ensure that the list-items are multiplies of 4"""
@@ -23,7 +23,7 @@ def lint(md_files):
"""lint all md files"""
all_clean = True
for md in md_files:
- with open(md) as f:
+ with codecs.open(md, "r", "utf-8") as f:
buf = f.read()
for fname, func in globals().items():
if fname.startswith("lint_"):