MCPcopy Index your code
hub / github.com/PyMySQL/PyMySQL / set_charset

Method set_charset

pymysql/connections.py:631–642  ·  view source on GitHub ↗

Deprecated. Use set_character_set() instead.

(self, charset)

Source from the content-addressed store, hash-verified

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

Callers 2

test_set_charsetMethod · 0.80

Calls 1

set_character_setMethod · 0.95

Tested by 2

test_set_charsetMethod · 0.64