diff options
author | Guido van Rossum <guido@python.org> | 1997-08-15 15:44:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-08-15 15:44:23 (GMT) |
commit | 827ea7cf5d70a835c828edf646f488b79bf95a24 (patch) | |
tree | b7c79eb580869ba676b6f386b8f3c55509bbefc3 /Lib | |
parent | f2e917e8e5f5a5dfdfb2e0449c6fb6be575e5914 (diff) | |
download | cpython-827ea7cf5d70a835c828edf646f488b79bf95a24.zip cpython-827ea7cf5d70a835c828edf646f488b79bf95a24.tar.gz cpython-827ea7cf5d70a835c828edf646f488b79bf95a24.tar.bz2 |
Last minut changes for \B, \S (?). AMK.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/re.py | 4 |
1 files changed, 2 insertions, 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: |