Skip to content

Commit

Permalink
utils/domain_substitution: remove compresslevel flag
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmoron committed Feb 27, 2025
1 parent d1ff599 commit aa0c95d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/domain_substitution.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,7 @@ def apply_substitution(regex_path, files_path, source_tree, domainsub_cache):
resolved_tree = source_tree.resolve()
regex_pairs = DomainRegexList(regex_path).regex_pairs
fileindex_content = io.BytesIO()
with tarfile.open(str(domainsub_cache), 'w:%s' % domainsub_cache.suffix[1:],
compresslevel=1) if domainsub_cache else open(os.devnull, 'w') as cache_tar:
with tarfile.open(str(domainsub_cache), 'w:%s' % domainsub_cache.suffix[1:]) if domainsub_cache else open(os.devnull, 'w') as cache_tar:
for relative_path in filter(len, files_path.read_text().splitlines()):
if _INDEX_HASH_DELIMITER in relative_path:
if domainsub_cache:
Expand Down

0 comments on commit aa0c95d

Please sign in to comment.