Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanprjcts committed Jan 22, 2021
1 parent ed61dc5 commit e70d473
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdklib/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
from StringIO import StringIO
import exceptions

py_bytes = bytes
basestring = basestring
bytes = str
str = unicode
convert_bytes_to_str = lambda x: x
convert_unicode_to_native_str = lambda x: x.encode("ISO-8859-1") if isinstance(x, unicode) else x
convert_str_to_bytes = lambda x: x.encode("ISO-8859-1") if isinstance(x, basestring) else x
convert_str_to_bytes = lambda x: py_bytes(x)

def cache(*args, **kargs):
def wrapper(f):
Expand Down

0 comments on commit e70d473

Please sign in to comment.