##// END OF EJS Templates
fileset: handle error of string unescaping
Yuya Nishihara -
r26233:d3dbb65c default
parent child Browse files
Show More
@@ -54,7 +54,7 b' def tokenize(program):'
54 54 c = program[pos]
55 55 decode = lambda x: x
56 56 else:
57 decode = lambda x: x.decode('string-escape')
57 decode = parser.unescapestr
58 58 pos += 1
59 59 s = pos
60 60 while pos < l: # find closing quote
@@ -49,6 +49,9 b' Test operators and basic patterns'
49 49 $ fileset 'a* - a1'
50 50 a2
51 51 $ fileset 'a_b'
52 $ fileset '"\xy"'
53 hg: parse error: invalid \x escape
54 [255]
52 55
53 56 Test files status
54 57
General Comments 0
You need to be logged in to leave comments. Login now