##// END OF EJS Templates
convert: use our shlex wrapper in filemap to avoid Python 3 tracebacks...
Augie Fackler -
r36577:5374a22d default
parent child Browse files
Show More
@@ -7,7 +7,6 b''
7 7 from __future__ import absolute_import, print_function
8 8
9 9 import posixpath
10 import shlex
11 10
12 11 from mercurial.i18n import _
13 12 from mercurial import (
@@ -71,8 +70,8 b' class filemapper(object):'
71 70 (lex.infile, lex.lineno, listname, name))
72 71 return 1
73 72 return 0
74 lex = shlex.shlex(open(path, 'rb'), path, True)
75 lex.wordchars += '!@#$%^&*()-=+[]{}|;:,./<>?'
73 lex = common.shlexer(
74 filepath=path, wordchars='!@#$%^&*()-=+[]{}|;:,./<>?')
76 75 cmd = lex.get_token()
77 76 while cmd:
78 77 if cmd == 'include':
General Comments 0
You need to be logged in to leave comments. Login now