Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
f6658e06
Commit
f6658e06
authored
Sep 18, 2014
by
Daniel Brown
Browse files
adding in unicode conversion
parent
9ce4cf7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/finesse.py
View file @
f6658e06
...
...
@@ -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
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment