diff options
Diffstat (limited to 'calm/package.py')
-rwxr-xr-x | calm/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calm/package.py b/calm/package.py index 16ec04a..b28907a 100755 --- a/calm/package.py +++ b/calm/package.py @@ -35,9 +35,9 @@ import logging import os import pprint import re -import tarfile import textwrap import time +import xtarfile from .version import SetupVersion from .movelist import MoveList @@ -455,7 +455,7 @@ def tarfile_is_empty(tf): # if it's really a tar file, does it contain zero files? try: - with tarfile.open(tf) as a: + with xtarfile.open(tf, mode='r') as a: if any(a) == 0: return True except Exception as e: |