summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael P. Soulier <msoulier@digitaltorque.ca>2021-10-19 11:55:20 -0400
committerMichael P. Soulier <msoulier@digitaltorque.ca>2021-10-19 11:55:20 -0400
commit5502b2895116db3a7c00f74aedd5daa5b5a851e5 (patch)
tree7472ff01c54defdaf8e64b3749ec1e59fdec4ba5
parent10e456319c46268f76ec8b8aed5934995252a916 (diff)
downloadtftpy-5502b2895116db3a7c00f74aedd5daa5b5a851e5.tar.gz
Dropping Python 2 support. #127
-rwxr-xr-xsetup.py3
-rw-r--r--tftpy/__init__.py6
2 files changed, 4 insertions, 5 deletions
diff --git a/setup.py b/setup.py
index 9991b3b..4ac837d 100755
--- a/setup.py
+++ b/setup.py
@@ -163,9 +163,8 @@ setup(name='tftpy',
'Source': 'https://github.com/msoulier/tftpy/',
'Tracker': 'https://github.com/msoulier/tftpy/issues',
},
- python_requires='>=2.7',
+ python_requires='>=3.0',
classifiers=[
- 'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Development Status :: 4 - Beta',
'Environment :: Console',
diff --git a/tftpy/__init__.py b/tftpy/__init__.py
index 71b8e3d..7d5ea15 100644
--- a/tftpy/__init__.py
+++ b/tftpy/__init__.py
@@ -13,10 +13,10 @@ directly. The TftpClient and TftpServer classes can be reached through it.
import sys
-# Make sure that this is at least Python 2.7
-required_version = (2, 7)
+# Make sure that this is at least Python 3
+required_version = (3, 0)
if sys.version_info < required_version:
- raise ImportError("Requires at least Python 2.7")
+ raise ImportError("Requires at least Python 3.0")
from .TftpShared import *
from . import TftpPacketTypes