MCPcopy Index your code
hub / github.com/ryanmcgrath/twython / encode

Method encode

twython/api.py:556–559  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

554
555 @staticmethod
556 def encode(text):
557 if is_py2 and isinstance(text, (str)):
558 return Twython.unicode2utf8(text)
559 return str(text)
560
561 @staticmethod
562 def html_for_tweet(tweet, use_display_url=True, use_expanded_url=False, expand_quoted_status=False):

Callers 5

test_encodeMethod · 0.80
on_successMethod · 0.80
search_results.pyFile · 0.80
construct_api_urlMethod · 0.80
unicode2utf8Method · 0.80

Calls 1

unicode2utf8Method · 0.80

Tested by 1

test_encodeMethod · 0.64