Python 2/3 compatible treatment of max(n, None)
Python 3 does no longer allow comparisons of different types. Therefore, explicitly convert f.checked_runid to a number that's always smaller than `f.changed_runid`
This commit is contained in:
parent
52a8ca25b2
commit
efab08fc9f
2 changed files with 3 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ def isdirty(f, depth, max_changed,
|
|||
elif mode == 'm':
|
||||
sub = isdirty(f2, depth=depth + ' ',
|
||||
max_changed=max(f.changed_runid,
|
||||
f.checked_runid),
|
||||
f.checked_runid or 0),
|
||||
already_checked=already_checked,
|
||||
is_checked=is_checked,
|
||||
set_checked=set_checked,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue