diff options
Diffstat (limited to 'repa/list.py')
-rwxr-xr-x | repa/list.py | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/repa/list.py b/repa/list.py index d92e4fa..d3f6372 100755 --- a/repa/list.py +++ b/repa/list.py @@ -44,7 +44,7 @@ def get_status(meta, colorizer, build_results=None, ignore='', if build_results: codes = set() pkgstatus = {} - for (repo, arch), target in build_results.iteritems(): + for (repo, arch), target in build_results.items(): codes.add(target.get('code')) codes.add(target.get('state')) for pkginfo in target['packages']: @@ -77,7 +77,7 @@ def get_status(meta, colorizer, build_results=None, ignore='', # Add build time to the status project = get_prerelease(meta['git_tag'], meta['obs_target_prj']) btime = 0 - for (repo, arch), target in build_results.iteritems(): + for (repo, arch), target in build_results.items(): btime = max(btime, obs.get_build_time(str(project), str(repo), str(arch))) minutes, seconds = divmod(btime, 60) @@ -91,11 +91,11 @@ def show_urls(meta): """Print OBS and download urls.""" download_url = get_download_url(meta) if download_url: - print ' download url: ', download_url + print(' download url: ', download_url) obs_url = get_obs_url(meta) if obs_url: - print ' obs url: ', obs_url - print + print(' obs url: ', obs_url) + print() def get_sr(obs, project, package, tag, status): """Check if tag is in comments of accepted/declined SRs.""" @@ -137,40 +137,40 @@ def list_submissions(obs, target, processes, base, is_colorize=False, if rsr: base_status = colorizer.red('rejected. SR %s' % rsr) if refprj: - print '%-37s %-37s %-37s %-37s %s' % \ + print('%-37s %-37s %-37s %-37s %s' % \ (meta['git_tag'], meta['ref_obs_target_prj'], get_status(meta, colorizer, build_results, ignore, obs, showtime), - base_status, ','.join(projects)) + base_status, ','.join(projects))) else: - print '%-37s %-37s %-37s %s' % \ + print('%-37s %-37s %-37s %s' % \ (meta['git_tag'], get_status(meta, colorizer, build_results, ignore, obs, showtime), - base_status, ','.join(projects)) + base_status, ','.join(projects))) else: if refprj: - print '%-37s %-37s %-37s %s' % \ + print('%-37s %-37s %-37s %s' % \ (meta['git_tag'], meta['ref_obs_target_prj'], get_status(meta, colorizer, build_results, ignore, obs, showtime), - ','.join(projects)) + ','.join(projects))) else: - print '%-37s %-37s %s' % \ + print('%-37s %-37s %s' % \ (meta['git_tag'], get_status(meta, colorizer, build_results, ignore, obs, showtime), - ','.join(projects)) + ','.join(projects))) if showurls: show_urls(meta) # groups if groups: - print + print() for meta in groups: - print '%-37s %-37s' % (meta['name'], get_status(meta, colorizer)) + print('%-37s %-37s' % (meta['name'], get_status(meta, colorizer))) if showurls: show_urls(meta) |