Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
key = response.read_ascii()
if len(key) == 0:
response.read(1)
break
value = response.read_ascii()
data[key] = value
response.read(len("player_") + 1 + 1)
while True:
name = response.read_ascii()
if len(name) == 0:
break
players.append(name)
return QueryResponse(data, players)