~hloeung/ubuntu-repository-cache/no-hookenv-config-for-apache-root

« back to all changes in this revision

Viewing changes to lib/ubuntu_repository_cache/metadata_sync.py

  • Committer: mergebot at canonical
  • Author(s): "Tom Haddon"
  • Date: 2019-07-03 08:00:00 UTC
  • mfrom: (256.2.1 ubuntu-repository-cache)
  • Revision ID: mergebot@juju-139df4-prod-is-toolbox-0.canonical.com-20190703080000-cvo4qcj6qa5941nl
Fix lint

Reviewed-on: https://code.launchpad.net/~mthaddon/ubuntu-repository-cache/fix-lint/+merge/369582
Reviewed-by: Joel Sing <joel.sing@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
427
427
    # Traverse distributions and fail early by starting with the newest.
428
428
    # The newest (development branch) will have the highest rate of churn,
429
429
    # therefore the greatest chance of being invalid.
430
 
    dists = sorted([ent for ent in os.listdir(dists_root)
431
 
                    if os.path.isdir('/'.join((dists_root, ent))) and
432
 
                    not os.path.islink('/'.join((dists_root, ent)))],
 
430
    dists = sorted([ent for ent in os.listdir(dists_root) if
 
431
                    os.path.isdir('/'.join((dists_root, ent))) and not
 
432
                    os.path.islink('/'.join((dists_root, ent)))],
433
433
                   reverse=True)
434
434
 
435
435
    for dist in dists: