runtests: drop Python 2 support remains

Used in the test SMB and telnet servers.

Closes #19544
This commit is contained in:
Viktor Szakats 2025-11-01 02:20:32 +01:00
parent 6225d7ba2f
commit 4c76cdc157
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 1 additions and 11 deletions

View file

@ -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

View file

@ -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