Skip to content

Commit

Permalink
Fix ./run-checks --static
Browse files Browse the repository at this point in the history
Python doesn't like LANG=C.UTF-8 so just open the files
using UTF-8 directly
  • Loading branch information
drizzt committed Jul 1, 2016
1 parent 65cf4d3 commit b66d3ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mdlint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand All @@ -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_"):
Expand Down

0 comments on commit b66d3ea

Please sign in to comment.