diff --git a/libarchive/__init__.py b/libarchive/__init__.py index 038fe81..4580b52 100644 --- a/libarchive/__init__.py +++ b/libarchive/__init__.py @@ -34,8 +34,7 @@ import warnings from libarchive import _libarchive from io import StringIO -# PY3 = sys.version_info[0] == 3 -PY3 = True +PY3 = sys.version_info[0] >= 3 # Suggested block size for libarchive. Libarchive may adjust it. BLOCK_SIZE = 10240