defined unicode as str or used basestring
in py3 unicode does not exists is default str type but it exists in py2, wrote code to make it run in both py2 and py3
This commit is contained in:
1 parent
f72f948744
commit
f416e96414
10 files changed
+33
-6
No files matched your search
@@ -11,6 +11,11 @@ import sys
|
||||
import traceback
|
||||
import time
|
||||
|
||||
try:
|
||||
unicode
|
||||
except:
|
||||
unicode = str
|
||||
|
||||
def _log_call(*lines):
|
||||
_log(lines, prefix=">", stream="call")
|
||||
|
||||
|
||||
Reference in new issue
Block a user