Skip to content

Commit 369902a

Browse files
committed
A better type check
1 parent 935ad0d commit 369902a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# 200 Unicode chars: snowman + poo.
1010
UNIUNI = u"\u26C4\U0001F4A9"*100
11-
if isinstance(UNIUNI, type("")):
11+
if isinstance(UNIUNI, str):
1212
UNISTR = UNIUNI
1313
else:
1414
UNISTR = UNIUNI.encode("utf8")

0 commit comments

Comments
 (0)