diff options
Diffstat (limited to 'tests/python_dependencies/impacket/smbserver.py')
-rw-r--r-- | tests/python_dependencies/impacket/smbserver.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/python_dependencies/impacket/smbserver.py b/tests/python_dependencies/impacket/smbserver.py index c481b27ba..902d22f9c 100644 --- a/tests/python_dependencies/impacket/smbserver.py +++ b/tests/python_dependencies/impacket/smbserver.py @@ -26,9 +26,10 @@ import socket import time import datetime import struct -try: # Python 3 +import sys +if sys.version_info.major >= 3: import configparser -except ImportError: # Python 2 +else: import ConfigParser as configparser import SocketServer import threading @@ -38,7 +39,6 @@ import ntpath import os import fnmatch import errno -import sys import random import shutil from binascii import hexlify |