[compat] Beautify assertion

pull/2/head
Philipp Hagemeister 10 years ago
parent 4aae94f9d0
commit b061ea6e9f

@ -270,7 +270,7 @@ if sys.version_info < (3, 0):
print(s.encode(preferredencoding(), 'xmlcharrefreplace')) print(s.encode(preferredencoding(), 'xmlcharrefreplace'))
else: else:
def compat_print(s): def compat_print(s):
assert type(s) == type(u'') assert isinstance(s, compat_str)
print(s) print(s)

Loading…
Cancel
Save