mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Internet: Fix Python 3 compatibility.
This commit is contained in:
parent
418b3e007c
commit
8a8f380a6b
@ -87,11 +87,11 @@ class Internet(callbacks.Plugin):
|
||||
return
|
||||
sock.settimeout(5)
|
||||
if usertld == 'com':
|
||||
sock.send('=')
|
||||
sock.send(b'=')
|
||||
sock.send(domain.encode('ascii'))
|
||||
sock.send(b'\r\n')
|
||||
|
||||
s = ''
|
||||
s = b''
|
||||
end_time = time.time() + 5
|
||||
try:
|
||||
while end_time>time.time():
|
||||
|
Loading…
Reference in New Issue
Block a user