]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40480: restore ability to join fnmatch.translate() results (GH-20049)
authorTim Peters <tim.peters@gmail.com>
Tue, 12 May 2020 02:19:20 +0000 (21:19 -0500)
committerGitHub <noreply@github.com>
Tue, 12 May 2020 02:19:20 +0000 (21:19 -0500)
commitb1b4c790e7d3b5f4244450aefe3d8f01710c13f7
treed0f03bf47219bdec01e64b56aed96df96ab427b1
parentd0919f0d6bb757b6bcfd7b2e15656d318c9d5cd9
bpo-40480: restore ability to join fnmatch.translate() results (GH-20049)

In translate(), generate unique group names across calls.

The restores the undocumented ability to get a valid regexp
by joining multiple translate() results via `|`.
Lib/fnmatch.py
Lib/test/test_fnmatch.py