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