Skip to content

Commit

Permalink
Merge a95cb8e into c6f56ed
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Oct 9, 2018
2 parents c6f56ed + a95cb8e commit 6368d9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
13 changes: 2 additions & 11 deletions nose2/plugins/junitxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,15 +248,6 @@ def _time(self):
# xml utility functions
#

# six doesn't include a unichr function


def _unichr(string):
if six.PY3:
return chr(string)
else:
return unichr(string)

# etree outputs XML 1.0 so the 1.1 Restricted characters are invalid.
# and there are no characters that can be given as entities aside
# form & < > ' " which ever have to be escaped (etree handles these fine)
Expand All @@ -281,12 +272,12 @@ def _unichr(string):

ILLEGAL_REGEX_STR = \
six.u('[') + \
six.u('').join(["%s-%s" % (_unichr(l), _unichr(h))
six.u('').join(["%s-%s" % (six.unichr(l), six.unichr(h))
for (l, h) in ILLEGAL_RANGES]) + \
six.u(']')
RESTRICTED_REGEX_STR = \
six.u('[') + \
six.u('').join(["%s-%s" % (_unichr(l), _unichr(h))
six.u('').join(["%s-%s" % (six.unichr(l), six.unichr(h))
for (l, h) in RESTRICTED_RANGES]) + \
six.u(']')

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
six>=1.7
coverage>=4.4.1
coverage>=4.5.1
six>=1.11.0

0 comments on commit 6368d9a

Please sign in to comment.