flake8-invalid-escape-sequences

Detects and warns about invalid escape sequences.


Keywords
escape-sequences, flake8-plugin, python, python2, python3, quality-assurance
License
GPL-3.0
Install
pip install flake8-invalid-escape-sequences==1.3

Documentation

image

flake8-invalid-escape-sequences

A plugin for flake8 (v3+) that detects and reports invalid escape sequences.

Note: This plugin is not required anymore if you've upgraded to pycodestyle 2.4.0 (released Apr 10, 2018). pycodestyle now issues W605 warning for invalid escape sequences.

Introduction

Invalid escape sequences became deprecated in Python 3.6 and will be a SyntaxError in the future.

This plugin finds those invalid sequences and reports them. Here is a sample output:

Installation

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