mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
#13899: \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett.
This commit is contained in:
parent
26ed234052
commit
fe8e6e7414
4 changed files with 11 additions and 1 deletions
|
@ -235,7 +235,7 @@ def _class_escape(source, escape):
|
|||
if code:
|
||||
return code
|
||||
code = CATEGORIES.get(escape)
|
||||
if code:
|
||||
if code and code[0] == IN:
|
||||
return code
|
||||
try:
|
||||
c = escape[1:2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue