mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
use str on objects which are not strings
This commit is contained in:
parent
f4b40089f3
commit
a69c50f470
@ -56,7 +56,10 @@ if is_py2:
|
||||
try:
|
||||
return unicode(text)
|
||||
except:
|
||||
return text.decode('utf-8', 'replace')
|
||||
try:
|
||||
return text.decode('utf-8', 'replace')
|
||||
except AttributeError:
|
||||
return unicode(str(text))
|
||||
|
||||
elif is_py3:
|
||||
def u(text):
|
||||
|
Loading…
Reference in New Issue
Block a user