MCPcopy Create free account
hub / github.com/pallets/flask / _has_encoding

Function _has_encoding

tests/test_json.py:260–267  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

258
259
260def _has_encoding(name):
261 try:
262 import codecs
263
264 codecs.lookup(name)
265 return True
266 except LookupError:
267 return False
268
269
270def test_json_key_sorting(app, client):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected