Skip to content

Commit

Permalink
remove _make_tar_archiver()
Browse files Browse the repository at this point in the history
  • Loading branch information
cosmicexplorer committed May 5, 2018
1 parent 948856d commit 8e5e742
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/python/pants/fs/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,14 +192,9 @@ def create(self, basedir, outdir, name, prefix=None):
return zippath


def _make_tar_archiver(compression_type):
compression_spec = 'w:{}'.format(compression_type)
extension = 'tar.{}'.format(compression_type)
return TarArchiver(compression_spec, extension)

TAR = _make_tar_archiver('')
TGZ = _make_tar_archiver('gz')
TBZ2 = _make_tar_archiver('bz2')
TAR = TarArchiver('w:', 'tar')
TGZ = TarArchiver('w:gz', 'tar.gz')
TBZ2 = TarArchiver('w:bz2', 'tar.bz2')
TXZ = XZCompressedTarArchiver()
ZIP = ZipArchiver(ZIP_DEFLATED, 'zip')

Expand Down

0 comments on commit 8e5e742

Please sign in to comment.