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

Method set_charset

pymysql/connections.py:628–639  ·  view source on GitHub ↗

Deprecated. Use set_character_set() instead.

(self, charset)

Source from the content-addressed store, hash-verified

626 raise
627
628 def set_charset(self, charset):
629 """Deprecated. Use set_character_set() instead."""
630 warnings.warn(
631 "'set_charset' is deprecated, use 'set_character_set' instead",
632 DeprecationWarning,
633 2,
634 )
635 # This function has been implemented in old PyMySQL.
636 # But this name is different from MySQLdb.
637 # So we keep this function for compatibility and add
638 # new set_character_set() function.
639 self.set_character_set(charset)
640
641 def set_character_set(self, charset, collation=None):
642 """

Callers 2

test_set_charsetMethod · 0.80

Calls 1

set_character_setMethod · 0.95

Tested by 2

test_set_charsetMethod · 0.64