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

Method encoding

pymysql/charset.py:17–27  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15
16 @property
17 def encoding(self):
18 name = self.name
19 if name in ("utf8mb4", "utf8mb3"):
20 return "utf8"
21 if name == "latin1":
22 return "cp1252"
23 if name == "koi8r":
24 return "koi8_r"
25 if name == "koi8u":
26 return "koi8_u"
27 return name
28
29 @property
30 def is_binary(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected