MCPcopy Index your code
hub / github.com/RustPython/RustPython / _extract_text_encoding

Function _extract_text_encoding

Lib/zipfile/_path/__init__.py:194–201  ·  view source on GitHub ↗
(encoding=None, *args, **kwargs)

Source from the content-addressed store, hash-verified

192 return self.__lookup
193
194def _extract_text_encoding(encoding=None, *args, **kwargs):
195 # compute stack level so that the caller of the caller sees any warning.
196 is_pypy = sys.implementation.name == 'pypy'
197 # PyPy no longer special cased after 7.3.19 (or maybe 7.3.18)
198 # See jaraco/zipp#143
199 is_old_pypi = is_pypy and sys.pypy_version_info < (7, 3, 19)
200 stack_level = 3 + is_old_pypi
201 return io.text_encoding(encoding, stack_level), args, kwargs
202
203
204class Path:

Callers 2

openMethod · 0.85
read_textMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected