Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid coding: utf-8 in Python 3 scripts #225

Closed

Conversation

DimitriPapadopoulos
Copy link
Contributor

As far as I know, only Python 3 is supported. Therefore, get rid of coding: utf-8 in generated scripts, as UTF-8 is the default.

Also, it could be that module or import_name are not ASCII, but then I would rather add tests with non-ASCII module and function names.

@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as draft June 16, 2024 10:13
@DimitriPapadopoulos DimitriPapadopoulos changed the title Avoid "coding: utf-8" in Python 3 scripts Avoid coding: utf-8 in Python 3 scripts Jun 16, 2024
@DimitriPapadopoulos DimitriPapadopoulos marked this pull request as ready for review June 16, 2024 10:21
@Secrus
Copy link
Member

Secrus commented Aug 17, 2024

This is not really valid, since you can use installer as library and make it install a wheel into Python 2 environment (in which case, IIRC, the coding info is needed).

@DimitriPapadopoulos
Copy link
Contributor Author

If Python 2 target environments are supported, then yes, it's best to keep this as is for non-ASCII module and function names.

I may be mistaken, but I cannot find details about support for Python 2 environments in the documentation.

@Secrus
Copy link
Member

Secrus commented Aug 28, 2024

There might not be a mention of that in the docs. No matter that, I would leave the coding comment in place. It doesn't hurt us to keep it there.

@Secrus Secrus closed this Aug 28, 2024
@DimitriPapadopoulos DimitriPapadopoulos deleted the coding_utf-8 branch August 29, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants