~brz/brz-debian/trunk

« back to all changes in this revision

Viewing changes to repack_tarball.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-16 14:35:09 UTC
  • Revision ID: jelmer@jelmer.uk-20200216143509-x2dbzwmpkore4ak6
Avoid sixish.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    DependencyNotPresent,
36
36
    FileExists,
37
37
    )
38
 
from ...sixish import (
39
 
    viewitems,
40
 
    )
41
38
from ...transport import get_transport
42
39
 
43
40
from .errors import UnsupportedRepackFormat
135
132
        ".tar": "tar",
136
133
        ".zip": "zip"
137
134
        }
138
 
    for filetype, name in viewitems(types):
 
135
    for filetype, name in types.items():
139
136
        if filename.endswith(filetype):
140
137
            return name
141
138