mcmtroffaes / latexcodec

Lexer and codec to work with LaTeX code in Python. Instead of using latexcodec, I encourage you to consider pylatexenc instead, which is far superior: https://github.com/phfaist/pylatexenc
Other
27 stars 12 forks source link

Support Python 3.9 #75

Closed vstinner closed 4 years ago

vstinner commented 4 years ago

Python 3.9 changed codecs.lookup(): the encoding name is now normalized before calling search functions. See:

I propose attached PR to support Python 3.9.

vstinner commented 4 years ago

Fixed by commit a30ae2cf061d7369b1aaa8179ddd1b486974fdad. That's enough for my need (Fedora can backport fixes). I close the issue, thanks!

mcmtroffaes commented 4 years ago

Splendid. I'll push a new release soon with the fix as well.