Skip to content

Commit

Permalink
fix #1164 -- make filters.tidy py3k-compatible
Browse files Browse the repository at this point in the history
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Mar 25, 2014
1 parent 5cbc4de commit 08a1ecd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nikola/filters.py
Expand Up @@ -141,7 +141,9 @@ def tidy(inplace):
"no --keep-time yes --tidy-mark no "
"--force-output yes '{0}'; exit 0".format(inplace), stderr=subprocess.STDOUT, shell=True)

for line in output.split("\n"):
output = '\n'.join([l.decode('utf-8') for l in output.split(b'\n')])

for line in output.split(u"\n"):
if "Warning:" in line:
if '<meta> proprietary attribute "charset"' in line:
# We want to set it though.
Expand Down

0 comments on commit 08a1ecd

Please sign in to comment.