--- 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():