mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Last minut changes for \B, \S (?). AMK.
This commit is contained in:
parent
f2e917e8e5
commit
827ea7cf5d
1 changed files with 2 additions and 2 deletions
|
@ -463,7 +463,7 @@ class WordBound(Instruction):
|
|||
class NotWordBound(Instruction):
|
||||
name = 'notwordbound'
|
||||
def __init__(self):
|
||||
Instruction.__init__(self, chr(18))
|
||||
Instruction.__init__(self, chr(19))
|
||||
|
||||
class SyntaxSpec(Instruction):
|
||||
name = 'syntaxspec'
|
||||
|
@ -748,7 +748,7 @@ def expand_escape(pattern, index, context=NORMAL):
|
|||
elif context == CHARCLASS:
|
||||
set = []
|
||||
for char in reop.syntax_table.keys():
|
||||
if not reop.syntax_table[char] & reop.word:
|
||||
if not reop.syntax_table[char] & reop.whitespace:
|
||||
set.append(char)
|
||||
return SET, set, index + 1
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue