]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
runtests: drop Python 2 support remains
authorViktor Szakats <commit@vsz.me>
Sat, 1 Nov 2025 01:20:32 +0000 (02:20 +0100)
committerViktor Szakats <commit@vsz.me>
Sat, 15 Nov 2025 23:52:41 +0000 (00:52 +0100)
Used in the test SMB and telnet servers.

Closes #19544

tests/smbserver.py
tests/util.py

index bbaea6069eb48f2ebe4a9226e99b265d430247ab..1fc76f3416ecc33c53b86f049eb4f7badef2208f 100755 (executable)
@@ -23,9 +23,6 @@
 #
 """Server for testing SMB."""
 
-from __future__ import (absolute_import, division, print_function,
-                        unicode_literals)
-
 import argparse
 import logging
 import os
@@ -33,15 +30,11 @@ import signal
 import sys
 import tempfile
 import threading
+import configparser
 
 # Import our curl test data helper
 from util import ClosingFileHandler, TestData
 
-if sys.version_info.major >= 3:
-    import configparser
-else:
-    import ConfigParser as configparser
-
 # impacket needs to be installed in the Python environment
 try:
     import impacket  # noqa: F401
index 8ed8c892676f84fa48ace47889ef894e72b101ec..4d08ecc93a8118bba3d66b4e3f6c7bd845c60647 100755 (executable)
@@ -23,9 +23,6 @@
 #
 """Module for extracting test data from the test data folder and other utils."""
 
-from __future__ import (absolute_import, division, print_function,
-                        unicode_literals)
-
 import logging
 import os
 import re