[enhancement] move hardcoded encodings to contants by elpekenin · Pull Request #4378 · python-telegram-bot/python-telegram-bot

@elpekenin

As per title, just a very minor refactor

@elpekenin

@elpekenin

@elpekenin

Didn't change the hardcoded utf-8 in docs/source/conf.py, to prevent making it depend further on the project, can add the changes there too if desired

Bibo-Joshi

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! changing conf.py probably doesn't give a big benefit, also considerding that the import can't bee at the top … LGTM :)

@Bibo-Joshi

Thank you for the contribution!