mirror of
https://github.com/lanjelot/patator
synced 2024-11-16 06:15:24 +00:00
Fix #172
This commit is contained in:
parent
c112a2aa1d
commit
a93ae7a252
@ -3535,7 +3535,10 @@ class MySQL_login:
|
||||
|
||||
try:
|
||||
with Timing() as timing:
|
||||
fp = _mysql.connect(host=host, port=int(port), user=user, passwd=password, connect_timeout=int(timeout))
|
||||
if PY3:
|
||||
fp = _mysql.connect(host=host, port=int(port), user=user, password=password, connect_timeout=int(timeout))
|
||||
else:
|
||||
fp = _mysql.connect(host=host, port=int(port), user=user, passwd=password, connect_timeout=int(timeout))
|
||||
|
||||
resp = '0', fp.get_server_info()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user