summaryrefslogtreecommitdiff
path: root/attoconf/version.py
diff options
context:
space:
mode:
Diffstat (limited to 'attoconf/version.py')
-rw-r--r--attoconf/version.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/attoconf/version.py b/attoconf/version.py
index 829005c..065195b 100644
--- a/attoconf/version.py
+++ b/attoconf/version.py
@@ -15,14 +15,14 @@
# You should have received a copy of the GNU General Public License
# along with attoconf. If not, see <http://www.gnu.org/licenses/>.
-from __future__ import print_function, division, absolute_import
+
import sys
from . import _version
-if sys.version_info[0] != 2 or sys.version_info[1] < 7:
- sys.exit('Unsupported Python version: %s\nattoconf requires Python 2.7' % sys.version)
+if sys.version_info[0] != 3 or sys.version_info[1] < 10:
+ sys.exit('Unsupported Python version: %s\nattoconf requires Python 3.10+' % sys.version)
def require_version(major, minor, patch=0):
''' Check that this is the right version of attoconf, or die trying.