[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light
/ cpython Public

Conversation

Copy link
Contributor

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>
Copy link
Contributor Author

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

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

Thanks, @serhiy-storchaka!

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