Deprecated. Use set_character_set() instead.
(self, charset)
| 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 | """ |