Skip to content

Commit

Permalink
Rename compression_map to _compression_map
Browse files Browse the repository at this point in the history
  • Loading branch information
RKrahl committed Mar 17, 2024
1 parent 779d67c commit 199a81d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/archive/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def set_path(self, basedir):
self.path = basedir / self.name


compression_map = {
_compression_map = {
'.tar': '',
'.tar.gz': 'gz',
'.tar.bz2': 'bz2',
Expand All @@ -77,7 +77,7 @@ def create(self, path, compression=None, paths=None, fileinfos=None,
dedup=DedupMode.LINK, tags=None):
if compression is None:
try:
compression = compression_map["".join(path.suffixes)]
compression = _compression_map["".join(path.suffixes)]
except KeyError:
# Last ressort default
compression = 'gz'
Expand Down

0 comments on commit 199a81d

Please sign in to comment.