Skip to content

Commit f0d43c4

Browse files
committed
drop remnants of Python 2 in tests
1 parent 1eb810b commit f0d43c4

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tests/test_entry.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# -*- coding: utf-8 -*-
2-
3-
from codecs import open
41
import json
52
import locale
63
from os import environ, stat
@@ -15,8 +12,6 @@
1512
from . import data_dir, get_entries, get_tarinfos
1613

1714

18-
text_type = unicode if str is bytes else str # noqa: F821
19-
2015
locale.setlocale(locale.LC_ALL, '')
2116

2217
# needed for sane time stamp comparison
@@ -106,7 +101,7 @@ def check_entries(test_file, regen=False, ignore=''):
106101
# Normalize all unicode (can vary depending on the system)
107102
for d in (e1, e2):
108103
for key in d:
109-
if isinstance(d[key], text_type):
104+
if isinstance(d[key], str):
110105
d[key] = unicodedata.normalize('NFC', d[key])
111106
assert e1 == e2
112107

0 commit comments

Comments
 (0)