From 9897c592e6cd04876a9e9d10e24e57f766f0cf86 Mon Sep 17 00:00:00 2001 From: Rossen Georgiev Date: Wed, 22 Jul 2015 15:05:32 +0100 Subject: [PATCH] WebAPI: fix set concatenation in python3 --- steam/webapi.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/steam/webapi.py b/steam/webapi.py index 87c58dc..b99b922 100644 --- a/steam/webapi.py +++ b/steam/webapi.py @@ -213,9 +213,8 @@ class WebAPIMethod(object): ) def __call__(self, **kwargs): - possible_kwargs = (set(self._dict['parameters'].keys() + ['key', 'format', 'raw'])) - call_kwargs = set(kwargs.keys()) - unrecognized = call_kwargs.difference(possible_kwargs) + possible_kwargs = set(self._dict['parameters'].keys()) | set(['key', 'format', 'raw']) + unrecognized = set(kwargs.keys()).difference(possible_kwargs) if unrecognized: raise ValueError("Unrecognized parameter %s" % repr(unrecognized.pop()))