flake8-no-u-prefixed-strings

Detects and warns about invalid escape sequences.


Keywords
code-quality, flake8-plugin, python-style
License
GPL-3.0
Install
pip install flake8-no-u-prefixed-strings==0.2

Documentation

image

flake8-no-u-prefixed-strings

A plugin for flake8 (v3+) to disallow any u-prefixed string literals, e.g. u"", u'', U""""text""", or u'''string'''. Might be useful in Python 3 only projects, or Python 2 projects which enforce usage of unicode_literals.

You can use flake8-future-import to enforce import of unicode_literals.

Installation

Should work with all officially supported Python versions, including Python 2.7.