-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
- Loading branch information
There are no files selected for viewing
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?