- fixed some re usage, partly so it'll still work when re uses pre instead

of sre, and partly fixing re -> regex porting oversights
- fixed PyFontify.py so it actually *works* again..
This commit is contained in:
Just van Rossum 2001-07-10 19:25:40 +00:00
parent 353ae58964
commit 3eec7620be
4 changed files with 38 additions and 43 deletions

View file

@ -13,7 +13,7 @@ opensolidid = struct.pack('h', 471)
arrows = (nullid, closedid, openid, closedsolidid, opensolidid)
has_ctlcharsRE = re.compile('[\000-\037\177-\377]')
has_ctlcharsRE = re.compile(r'[\000-\037\177-\377]')
def ctlcharsREsearch(str):
if has_ctlcharsRE.search(str) is None:
return -1