Show More
@@ -392,11 +392,10 b' def sizematcher(x):' | |||||
392 | elif expr.startswith(">"): |
|
392 | elif expr.startswith(">"): | |
393 | a = util.sizetoint(expr[1:]) |
|
393 | a = util.sizetoint(expr[1:]) | |
394 | return lambda x: x > a |
|
394 | return lambda x: x > a | |
395 | elif expr[0:1].isdigit or expr.startswith('.'): |
|
395 | else: | |
396 | a = util.sizetoint(expr) |
|
396 | a = util.sizetoint(expr) | |
397 | b = _sizetomax(expr) |
|
397 | b = _sizetomax(expr) | |
398 | return lambda x: x >= a and x <= b |
|
398 | return lambda x: x >= a and x <= b | |
399 | raise error.ParseError(_("couldn't parse size: %s") % expr) |
|
|||
400 |
|
399 | |||
401 | @predicate('size(expression)', callexisting=True) |
|
400 | @predicate('size(expression)', callexisting=True) | |
402 | def size(mctx, x): |
|
401 | def size(mctx, x): |
General Comments 0
You need to be logged in to leave comments.
Login now