Browse Source

replace raise StopIteration, PEP-479

[ci skip]
0.9
Rossen Georgiev 7 years ago
parent
commit
7710010259
  1. 2
      steam/client/builtins/leaderboards.py
  2. 2
      steam/master_server.py

2
steam/client/builtins/leaderboards.py

@ -179,7 +179,7 @@ class SteamLeaderboard(object):
with ConstantRateLimit(times, seconds, sleep_func=self._steam.sleep) as r:
for entries in chunks(self, chunk_size):
if not entries:
raise StopIteration
return
for entry in entries:
yield entry
r.wait()

2
steam/master_server.py

@ -116,7 +116,7 @@ def query(filter_text=r'\napp\500', region=MSRegion.World, master=MSServer.Sourc
# check if we've reach the end of the list
if ip == '0.0.0.0' and port == 0:
raise StopIteration
return
yield ip, port

Loading…
Cancel
Save