MCPcopy Index your code
hub / github.com/python/cpython / hook_encoded

Function hook_encoded

Lib/fileinput.py:420–423  ·  view source on GitHub ↗
(encoding, errors=None)

Source from the content-addressed store, hash-verified

418
419
420def hook_encoded(encoding, errors=None):
421 def openhook(filename, mode):
422 return open(filename, mode, encoding=encoding, errors=errors)
423 return openhook
424
425
426def _test():

Callers 2

test_readlineMethod · 0.90
checkMethod · 0.90

Calls

no outgoing calls

Tested by 2

test_readlineMethod · 0.72
checkMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…