python-modernize -f libmodernize.fixes.fix_xrange_six

This commit is contained in:
Tomas Kopecek 2018-06-28 16:53:22 +02:00 committed by Mike McLean
parent e67bd0f3a7
commit b96092334d
13 changed files with 29 additions and 6 deletions

View file

@ -20,6 +20,7 @@
# Mike McLean <mikem@redhat.com>
# Mike Bonnet <mikeb@redhat.com>
from __future__ import absolute_import
import koji
import koji.tasks
import koji.xmlrpcplus
@ -36,6 +37,7 @@ import subprocess
import sys
import traceback
import errno
from six.moves import range
def incremental_upload(session, fname, fd, path, retries=5, logger=None):
@ -719,7 +721,7 @@ class TaskManager(object):
fo = open(fn, 'r')
id = None
name = None
for n in xrange(10):
for n in range(10):
# data should be in first few lines
line = fo.readline()
if line.startswith('# Koji buildroot id:'):