Use the variable name _ for unused return values

This commit is contained in:
practicalswift
2017-07-20 23:21:41 +02:00
parent 2e6080bbf3
commit 8239794360
4 changed files with 6 additions and 6 deletions

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: