##// END OF EJS Templates
fileset: drop bad "elif:" trying to check invalid size expression...
Yuya Nishihara -
r36523:db33c5bc default
parent child Browse files
Show More
@@ -392,11 +392,10 b' def sizematcher(x):'
392 392 elif expr.startswith(">"):
393 393 a = util.sizetoint(expr[1:])
394 394 return lambda x: x > a
395 elif expr[0:1].isdigit or expr.startswith('.'):
395 else:
396 396 a = util.sizetoint(expr)
397 397 b = _sizetomax(expr)
398 398 return lambda x: x >= a and x <= b
399 raise error.ParseError(_("couldn't parse size: %s") % expr)
400 399
401 400 @predicate('size(expression)', callexisting=True)
402 401 def size(mctx, x):
General Comments 0
You need to be logged in to leave comments. Login now