From 70a29e44c986c2e1d74c6275c2cc4abdff0e6988 Mon Sep 17 00:00:00 2001 From: Vadim Lebedev Date: Mon, 8 Aug 2022 20:08:57 +0200 Subject: [PATCH] Fix python version check --- libarchive/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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