Created
August 22, 2023 13:42
-
-
Save clayadavis/820fa7530eec6a945c0e16c7436f7bef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import io | |
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover | |
return encoding | |
try: | |
text_encoding = io.text_encoding | |
except AttributeError: | |
text_encoding = _text_encoding # type: ignore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment