Skip to content

Add check for redundant u prefixed string in Python 3 #4102

@federicobond

Description

@federicobond

Is your feature request related to a problem? Please describe

In Python 3, the u prefix is no longer necessary to indicate that a string is unicode, but some programmers may put it there out of habit or because they copied the code from somewhere else.

Describe the solution you'd like

Pylint should flag instances of u-prefixed strings in Python 3 with the redundant-string-prefix code.


I can contribute this check if there is interest in it.

Metadata

Metadata

Assignees

Labels

CheckersRelated to a checkerEnhancement ✨Improvement to a component

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions