Skip to content

Commit 9d92925

Browse files
committed
remove some of the code smells.
1 parent 8661533 commit 9d92925

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

xmlrunner/builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sys
33
import time
44
import six
5-
from six import unichr
65

76
from xml.dom.minidom import Document
87

@@ -21,8 +20,8 @@
2120

2221
if sys.maxunicode > 0x10000:
2322
_char_tail = six.u('%s-%s') % (
24-
unichr(0x10000),
25-
unichr(min(sys.maxunicode, 0x10FFFF))
23+
six.unichr(0x10000),
24+
six.unichr(min(sys.maxunicode, 0x10FFFF))
2625
)
2726

2827
_nontext_sub = re.compile(

xmlrunner/result.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import six
77
import re
88
from os import path
9-
from six import unichr
109
from six.moves import StringIO
1110

1211
from .unittest import TestResult, _TextTestResult, failfast
@@ -34,7 +33,7 @@
3433
])
3534

3635
_illegal_ranges = [
37-
"%s-%s" % (unichr(low), unichr(high))
36+
"%s-%s" % (six.unichr(low), six.unichr(high))
3837
for (low, high) in _illegal_unichrs
3938
]
4039

0 commit comments

Comments
 (0)