mirror of
https://github.com/curl/curl.git
synced 2026-04-20 23:31:13 +03:00
smbserver: fix Python version specific ConfigParser import
Follow up toee63837and8c7c4a6Fixes #5077
This commit is contained in:
parent
4674269633
commit
d5c01d779f
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue