Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/ryanmcgrath/twython
/ unicode2utf8
Method
unicode2utf8
twython/api.py:547–553 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
545
546
@staticmethod
547
def
unicode2utf8(text):
548
try
:
549
if
is_py2 and isinstance(text, str):
550
text = text.encode(
'utf-8'
)
551
except
:
552
pass
553
return
text
554
555
@staticmethod
556
def
encode(text):
Callers
1
encode
Method · 0.80
Calls
1
encode
Method · 0.80
Tested by
no test coverage detected