python-modernize -f libmodernize.fixes.fix_classic_division

This commit is contained in:
Tomas Kopecek 2017-05-03 11:41:39 +02:00
parent 6a0a5a232b
commit 8567044a20
4 changed files with 12 additions and 8 deletions

View file

@ -25,6 +25,7 @@
# Cristian Balint <cbalint@redhat.com>
from __future__ import absolute_import
from __future__ import division
import sys
from six.moves import range
from six.moves import zip
@ -5440,7 +5441,7 @@ def _pick_external_repo_priority(session, tag):
if not repolist:
priority = 5
else:
priority = (repolist[-1]['priority'] + 7) / 5 * 5
priority = (repolist[-1]['priority'] + 7) // 5 * 5
#at least 3 higher than current max and a multiple of 5
return priority