Skip to content

Commit be5d6ec

Browse files
author
Jani Mikkonen
committed
Fix for issue #182 - dont pass none to decode
1 parent 0703e1d commit be5d6ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xmlrunner/result.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def to_unicode(data):
6868
return repr(data).decode('utf8', 'replace')
6969

7070

71-
def safe_unicode(data, encoding=None):
71+
def safe_unicode(data, encoding='utf-8'):
7272
return xml_safe_unicode(to_unicode(data), encoding)
7373

7474

0 commit comments

Comments
 (0)