(text)
| 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): |