fix bug in py3
@@ -35,8 +35,11 @@ signal.signal(signal.SIGINT, signal_handler)
def unicode_(s):
+ if bgmi.config.IS_PYTHON3:
unicode_string = s.decode(sys.getfilesystemencoding())
return unicode_string
+ else:
+ return unicode(s)
# main function
