-
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Python 3.7 compatibility from py310compat
- Loading branch information
Showing
1 changed file
with
2 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,8 @@ | |
import io | ||
|
||
|
||
te_impl = 'lambda encoding, stacklevel=2, /: encoding' | ||
te_impl_37 = te_impl.replace(', /', '') | ||
_text_encoding = eval(te_impl) if sys.version_info > (3, 8) else eval(te_impl_37) | ||
def _text_encoding(encoding, stacklevel=2, /): | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jaraco
Author
Owner
|
||
return encoding | ||
|
||
|
||
text_encoding = ( | ||
|
Hi @jaraco. I'm not even proficient on Python, but I think there is a syntax error on the third parameter.
Used an online tool to validate it, can you please confirm?