changeset 52683:c975e8ec08bb

tests: drop py2 support for `fsmonitor-run-tests.py` There's some py2 compat code still in the fsmonitor extension, but I don't care about that and this doesn't affect that.
author Matt Harbison <matt_harbison@yahoo.com>
date Tue, 07 Jan 2025 17:46:56 -0500
parents 62546ee1f56b
children 70a75d379daf
files tests/fsmonitor-run-tests.py
diffstat 1 files changed, 3 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/tests/fsmonitor-run-tests.py	Tue Jan 07 17:36:13 2025 -0500
+++ b/tests/fsmonitor-run-tests.py	Tue Jan 07 17:46:56 2025 -0500
@@ -24,27 +24,17 @@
 
 osenvironb = getattr(os, 'environb', os.environ)
 
-if sys.version_info > (3, 5, 0):
-    PYTHON3 = True
+if sys.version_info >= (3, 8, 0):
 
     def _sys2bytes(p):
         return p.encode('utf-8')
 
-elif sys.version_info >= (3, 0, 0):
+else:
     print(
-        '%s is only supported on Python 3.5+ and 2.7, not %s'
+        '%s is only supported on Python 3.8+, not %s'
         % (sys.argv[0], '.'.join(str(v) for v in sys.version_info[:3]))
     )
     sys.exit(70)  # EX_SOFTWARE from `man 3 sysexit`
-else:
-    PYTHON3 = False
-
-    # In python 2.x, path operations are generally done using
-    # bytestrings by default, so we don't have to do any extra
-    # fiddling there. We define the wrapper functions anyway just to
-    # help keep code consistent between platforms.
-    def _sys2bytes(p):
-        return p
 
 
 def getparser():