Show More
@@ -14,6 +14,7 b' from . import (' | |||||
14 | error, |
|
14 | error, | |
15 | merge, |
|
15 | merge, | |
16 | parser, |
|
16 | parser, | |
|
17 | pycompat, | |||
17 | registrar, |
|
18 | registrar, | |
18 | scmutil, |
|
19 | scmutil, | |
19 | util, |
|
20 | util, | |
@@ -43,6 +44,7 b' globchars = ".*{}[]?/\\\\_"' | |||||
43 |
|
44 | |||
44 | def tokenize(program): |
|
45 | def tokenize(program): | |
45 | pos, l = 0, len(program) |
|
46 | pos, l = 0, len(program) | |
|
47 | program = pycompat.bytestr(program) | |||
46 | while pos < l: |
|
48 | while pos < l: | |
47 | c = program[pos] |
|
49 | c = program[pos] | |
48 | if c.isspace(): # skip inter-token whitespace |
|
50 | if c.isspace(): # skip inter-token whitespace |
General Comments 0
You need to be logged in to leave comments.
Login now