mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Remove regsub, reconvert, regex, regex_syntax and everything under lib-old.
This commit is contained in:
parent
efbeaef1c1
commit
10be10cbe7
69 changed files with 73 additions and 7120 deletions
|
@ -5,7 +5,7 @@
|
|||
import sys
|
||||
import os
|
||||
import string
|
||||
import regex
|
||||
import re
|
||||
from Tkinter import *
|
||||
from ManPage import ManPage
|
||||
|
||||
|
@ -208,15 +208,15 @@ class SelectionBox:
|
|||
print 'Empty search string'
|
||||
return
|
||||
if not self.casevar.get():
|
||||
map = regex.casefold
|
||||
map = re.IGNORECASE
|
||||
else:
|
||||
map = None
|
||||
try:
|
||||
if map:
|
||||
prog = regex.compile(search, map)
|
||||
prog = re.compile(search, map)
|
||||
else:
|
||||
prog = regex.compile(search)
|
||||
except regex.error, msg:
|
||||
prog = re.compile(search)
|
||||
except re.error, msg:
|
||||
self.frame.bell()
|
||||
print 'Regex error:', msg
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue