comparison mercurial/fileset.py @ 14513:85fe676c27e9

fileset: fix long line
author Matt Mackall <mpm@selenic.com>
date Thu, 02 Jun 2011 11:27:40 -0500
parents 30506b894359
children 68d814a3cefd
comparison
equal deleted inserted replaced
14512:8c8b55733cbd 14513:85fe676c27e9
54 yield ('string', decode(program[s:pos]), s) 54 yield ('string', decode(program[s:pos]), s)
55 break 55 break
56 pos += 1 56 pos += 1
57 else: 57 else:
58 raise error.ParseError(_("unterminated string"), s) 58 raise error.ParseError(_("unterminated string"), s)
59 elif c.isalnum() or c in '.*{}[]?' or ord(c) > 127: # gather up a symbol/keyword 59 elif c.isalnum() or c in '.*{}[]?' or ord(c) > 127:
60 # gather up a symbol/keyword
60 s = pos 61 s = pos
61 pos += 1 62 pos += 1
62 while pos < l: # find end of symbol 63 while pos < l: # find end of symbol
63 d = program[pos] 64 d = program[pos]
64 if not (d.isalnum() or d in ".*{}[]?," or ord(d) > 127): 65 if not (d.isalnum() or d in ".*{}[]?," or ord(d) > 127):