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