[compat] Beautify assertion

This commit is contained in:
Philipp Hagemeister 2014-11-26 11:48:09 +01:00
parent 4aae94f9d0
commit b061ea6e9f

View File

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