Use the variable name _ for unused return values

This commit is contained in:
practicalswift committed 2017-08-28 15:18:14 +02:00
1 parent 2e6080bbf3
commit 8239794360
4 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ class Socks5Connection(object):
self.conn.sendall(bytearray([0x01, 0x00]))
# Read connect request
(ver,cmd,rsv,atyp) = recvall(self.conn, 4)
ver, cmd, _, atyp = recvall(self.conn, 4)
if ver != 0x05:
raise IOError('Invalid socks version %i in connect request' % ver)
if cmd != Command.CONNECT: