Skip to content

Commit e7ab9c5

Browse files
committed
Change default MSQ behaviour to skip duplicates
1 parent 7e0d659 commit e7ab9c5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

valve/source/master_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def _map_region(self, region):
182182
raise ValueError("Invalid region identifier {!r}".format(reg))
183183
return regions
184184

185-
def find(self, region="all", duplicates=Duplicates.KEEP, **filters):
185+
def find(self, region="all", duplicates=Duplicates.SKIP, **filters):
186186
"""Find servers for a particular region and set of filtering rules
187187
188188
This returns an iterator which yields ``(host, port)`` server
@@ -285,8 +285,8 @@ def find(self, region="all", duplicates=Duplicates.KEEP, **filters):
285285
individually. See :mod:`valve.source.a2s`.
286286
287287
The master server may return duplicate addresses. By default, these
288-
duplicates will be included in the iterator returned by this method.
289-
See :class:`Duplicates` for controlling this behaviour.
288+
duplicates are excldued from the iterator returned by this method.
289+
See :class:`Duplicates` for controller this behaviour.
290290
"""
291291
if isinstance(region, (int, six.text_type)):
292292
regions = self._map_region(region)

0 commit comments

Comments
 (0)