##// END OF EJS Templates
py3: make sure regex is bytes in crecord.py...
Pulkit Goyal -
r36323:a8bca9d0 default
parent child Browse files
Show More
@@ -950,7 +950,7 b' class curseschunkselector(object):'
950 # preprocess the text, converting tabs to spaces
950 # preprocess the text, converting tabs to spaces
951 text = text.expandtabs(4)
951 text = text.expandtabs(4)
952 # strip \n, and convert control characters to ^[char] representation
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 lambda m:'^' + chr(ord(m.group()) + 64), text.strip('\n'))
954 lambda m:'^' + chr(ord(m.group()) + 64), text.strip('\n'))
955
955
956 if pair is not None:
956 if pair is not None:
General Comments 0
You need to be logged in to leave comments. Login now