mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
- 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:
parent
353ae58964
commit
3eec7620be
4 changed files with 38 additions and 43 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue