Show More
@@ -950,7 +950,7 b' class curseschunkselector(object):' | |||
|
950 | 950 | # preprocess the text, converting tabs to spaces |
|
951 | 951 | text = text.expandtabs(4) |
|
952 | 952 | # strip \n, and convert control characters to ^[char] representation |
|
953 | text = re.sub(r'[\x00-\x08\x0a-\x1f]', | |
|
953 | text = re.sub(br'[\x00-\x08\x0a-\x1f]', | |
|
954 | 954 | lambda m:'^' + chr(ord(m.group()) + 64), text.strip('\n')) |
|
955 | 955 | |
|
956 | 956 | if pair is not None: |
General Comments 0
You need to be logged in to leave comments.
Login now