Browse Source

WebAPI: fix set concatenation in python3

pull/6/head
Rossen Georgiev 10 years ago
parent
commit
9897c592e6
  1. 5
      steam/webapi.py

5
steam/webapi.py

@ -213,9 +213,8 @@ class WebAPIMethod(object):
) )
def __call__(self, **kwargs): def __call__(self, **kwargs):
possible_kwargs = (set(self._dict['parameters'].keys() + ['key', 'format', 'raw'])) possible_kwargs = set(self._dict['parameters'].keys()) | set(['key', 'format', 'raw'])
call_kwargs = set(kwargs.keys()) unrecognized = set(kwargs.keys()).difference(possible_kwargs)
unrecognized = call_kwargs.difference(possible_kwargs)
if unrecognized: if unrecognized:
raise ValueError("Unrecognized parameter %s" % repr(unrecognized.pop())) raise ValueError("Unrecognized parameter %s" % repr(unrecognized.pop()))

Loading…
Cancel
Save