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

Forbids binary strings with unicode escape chars #693

Closed
sobolevn opened this issue Jul 21, 2019 · 0 comments
Closed

Forbids binary strings with unicode escape chars #693

sobolevn opened this issue Jul 21, 2019 · 0 comments
Assignees
Labels
help wanted Extra attention is needed level:starter Good for newcomers rule request Adding a new rule

Comments

@sobolevn
Copy link
Member

Rule request

Thesis

We should forbid strings like b'\u0042'

Related #692
Related: https://github.com/PyCQA/pylint/search?q=anomalous-unicode-escape-in-string&unscoped_q=anomalous-unicode-escape-in-string

Reasoning

This is incorrect. Use regular strings instead: '\u0042'
This is a best practices rule.

@sobolevn sobolevn added help wanted Extra attention is needed level:starter Good for newcomers rule request Adding a new rule labels Jul 21, 2019
@sobolevn sobolevn added this to the Version 0.12.0 milestone Jul 21, 2019
@sobolevn sobolevn self-assigned this Jul 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed level:starter Good for newcomers rule request Adding a new rule
Projects
None yet
Development

No branches or pull requests

1 participant