Fix 'openreviews' script to work with Python3

Change-Id: Iadbbc00252bdbc3987d072e9064e80be7a8d01f2
This commit is contained in:
Ivan Kolodyazhny 2020-06-19 21:51:26 +03:00
parent 98e27f513d
commit fac90aa416
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ def quartile_age(changes, quartile=2, key='age'):
if not changes:
return 0
changes = sorted(changes, key=lambda change: change[key])
quartile_age = changes[len(changes) * quartile / 4][key]
quartile_age = changes[len(changes) * quartile // 4][key]
return sec_to_period_string(quartile_age)