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

Function escape_date

pymysql/converters.py:138–140  ·  view source on GitHub ↗
(obj, mapping=None)

Source from the content-addressed store, hash-verified

136
137
138def escape_date(obj, mapping=None):
139 fmt = "'{0.year:04}-{0.month:02}-{0.day:02}'"
140 return fmt.format(obj)
141
142
143def escape_struct_time(obj, mapping=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected