Skip to content

Commit f4b0887

Browse files
committed
drop remnants of Python 2 in tests
1 parent 2e820ba commit f4b0887

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

tests/test_entry.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
from codecs import open
43
import json
54
import locale
65
from os import environ, stat
@@ -15,8 +14,6 @@
1514
from . import data_dir, get_entries, get_tarinfos
1615

1716

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

2219
# needed for sane time stamp comparison
@@ -106,7 +103,7 @@ def check_entries(test_file, regen=False, ignore=''):
106103
# Normalize all unicode (can vary depending on the system)
107104
for d in (e1, e2):
108105
for key in d:
109-
if isinstance(d[key], text_type):
106+
if isinstance(d[key], str):
110107
d[key] = unicodedata.normalize('NFC', d[key])
111108
assert e1 == e2
112109

0 commit comments

Comments
 (0)