diff options
author | 2012-03-01 23:23:15 +0100 | |
---|---|---|
committer | 2012-03-01 23:23:15 +0100 | |
commit | 6ce9f197f4681875a2595a5a8d86bd047f993a99 (patch) | |
tree | 0bd35db35b9fe09eccd7262fcc60b4ada5f07e44 /pygithub3/core/client.py | |
parent | Merge branch 'docs' (diff) | |
download | python-github3-6ce9f197f4681875a2595a5a8d86bd047f993a99.tar.xz python-github3-6ce9f197f4681875a2595a5a8d86bd047f993a99.zip |
Python 2.6 compatibility
Diffstat (limited to 'pygithub3/core/client.py')
-rw-r--r-- | pygithub3/core/client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygithub3/core/client.py b/pygithub3/core/client.py index ce6cf7c..a8e33a1 100644 --- a/pygithub3/core/client.py +++ b/pygithub3/core/client.py @@ -59,7 +59,7 @@ class Client(object): """ Decorator to put extra args into requests.params """ def wrapper(self, verb, request, **kwargs): - diffs = kwargs.viewkeys() - VALID_REQUEST_ARGS + diffs = set(kwargs.keys()) - VALID_REQUEST_ARGS new_params = kwargs.get('params', {}) for key in diffs: # Put each key in new_params and delete it new_params[key] = kwargs[key] |