clean up unused variables #13

This commit is contained in:
Rossen Georgiev 2016-01-21 05:52:19 +00:00
parent 88a15770ff
commit 4b6ee9f27d
3 changed files with 3 additions and 3 deletions

View File

@ -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???")

View File

@ -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)

View File

@ -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 == ';':