MCPcopy Create free account
hub / github.com/PyMySQL/PyMySQL / set_charset

Method set_charset

pymysql/connections.py:640–651  ·  view source on GitHub ↗

Deprecated. Use set_character_set() instead.

(self, charset)

Source from the content-addressed store, hash-verified

638 raise
639
640 def set_charset(self, charset):
641 """Deprecated. Use set_character_set() instead."""
642 warnings.warn(
643 "'set_charset' is deprecated, use 'set_character_set' instead",
644 DeprecationWarning,
645 2,
646 )
647 # This function has been implemented in old PyMySQL.
648 # But this name is different from MySQLdb.
649 # So we keep this function for compatibility and add
650 # new set_character_set() function.
651 self.set_character_set(charset)
652
653 def set_character_set(self, charset, collation=None):
654 """

Callers 2

test_set_charsetMethod · 0.80

Calls 1

set_character_setMethod · 0.95

Tested by 2

test_set_charsetMethod · 0.64