Commit f6658e06 authored by Daniel Brown's avatar Daniel Brown
Browse files

adding in unicode conversion

parent 9ce4cf7f
......@@ -885,9 +885,12 @@ class kat(object):
for line in iter(p.stderr.readline, ""):
if len(line) > 0:
if isinstance(line, unicode):
import unicodedata
line = unicodedata.normalize('NFKD', line).encode("ascii", "ignore")
if line.lstrip().startswith('**'):
if self.verbose: sys.stdout.write(line)
if self.verbose: sys.stdout.write(line)
elif line.rstrip().endswith('s'):
vals = line.split("-")
action = vals[0].strip()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment