clean up unused variables #13
This commit is contained in:
parent
88a15770ff
commit
4b6ee9f27d
|
|
@ -283,7 +283,7 @@ class IS(object):
|
|||
|
||||
self.logger.debug("Server: %s", test)
|
||||
|
||||
(x, x, callsign, status, x) = test.split(' ', 4)
|
||||
_, _, callsign, status, _ = test.split(' ', 4)
|
||||
|
||||
if callsign == "":
|
||||
raise LoginError("Server responded with empty callsign???")
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ def _validate_callsign(callsign, prefix=""):
|
|||
if not match:
|
||||
raise ParseError("%sinvalid callsign" % prefix)
|
||||
|
||||
callsign, x, ssid = match[0]
|
||||
callsign, _, ssid = match[0]
|
||||
|
||||
if bool(ssid) and int(ssid) > 15:
|
||||
raise ParseError("%sssid not in 0-15 range" % prefix)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ def _parse_position(packet_type, body):
|
|||
parsed = {}
|
||||
|
||||
if packet_type not in '!=/@;':
|
||||
prefix, body = body.split('!', 1)
|
||||
_, body = body.split('!', 1)
|
||||
packet_type = '!'
|
||||
|
||||
if packet_type == ';':
|
||||
|
|
|
|||
Loading…
Reference in New Issue