Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit f1b2089

Browse files
dirk-thomasNurdok
authored andcommitted
fix invalid escape sequence (#445)
* fix invalid escape sequence * update release notes
1 parent 05e6205 commit f1b2089

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

docs/release_notes.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Release Notes
44
**pydocstyle** version numbers follow the
55
`Semantic Versioning <http://semver.org/>`_ specification.
66

7+
Current Development Version
8+
---------------------------
9+
10+
Bug Fixes
11+
12+
* Fix ``DeprecationWarning`` / ``SyntaxError`` "invalid escape sequence" with
13+
Python 3.6+ (#445).
14+
715
5.0.1 - December 9th, 2019
816
--------------------------
917

src/pydocstyle/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ class ConfigurationParser:
6464
'ignore-decorators')
6565
BASE_ERROR_SELECTION_OPTIONS = ('ignore', 'select', 'convention')
6666

67-
DEFAULT_MATCH_RE = '(?!test_).*\.py'
68-
DEFAULT_MATCH_DIR_RE = '[^\.].*'
67+
DEFAULT_MATCH_RE = r'(?!test_).*\.py'
68+
DEFAULT_MATCH_DIR_RE = r'[^\.].*'
6969
DEFAULT_IGNORE_DECORATORS_RE = ''
7070
DEFAULT_CONVENTION = conventions.pep257
7171

0 commit comments

Comments
 (0)