Skip to content

[3.7] bpo-32775: Fix regular expression warnings in fnmatch. (GH-5583)#5596

Merged
serhiy-storchaka merged 1 commit intopython:3.7from
miss-islington:backport-23cdbfa-3.7
Feb 9, 2018
Merged

[3.7] bpo-32775: Fix regular expression warnings in fnmatch. (GH-5583)#5596
serhiy-storchaka merged 1 commit intopython:3.7from
miss-islington:backport-23cdbfa-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Feb 9, 2018

fnmatch.translate() no longer produces patterns which contain set
operations.

Sets starting with '[' or containing '--', '&&', '~~' or '||' will
be interpreted differently in regular expressions in future versions.
Currently they emit warnings. fnmatch.translate() now avoids producing
patterns containing such sets by accident.
(cherry picked from commit 23cdbfa)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

https://bugs.python.org/issue32775

fnmatch.translate() no longer produces patterns which contain set
operations.

Sets starting with '[' or containing '--', '&&', '~~' or '||' will
be interpreted differently in regular expressions in future versions.
Currently they emit warnings. fnmatch.translate() now avoids producing
patterns containing such sets by accident.
(cherry picked from commit 23cdbfa)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@serhiy-storchaka: Backport status check is done, and it's a success ✅ .

@serhiy-storchaka serhiy-storchaka merged commit 0e36173 into python:3.7 Feb 9, 2018
@miss-islington
Copy link
Copy Markdown
Contributor Author

Thanks, @serhiy-storchaka!

@miss-islington miss-islington deleted the backport-23cdbfa-3.7 branch February 9, 2018 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants