diff options
author | 2012-02-03 20:47:01 +0100 | |
---|---|---|
committer | 2012-02-03 20:47:01 +0100 | |
commit | cfcebaf1968a5ac1f6a09349643c8b0016d36b18 (patch) | |
tree | b686144c86e3ff60cbcd87a997d047ecb45da40e /pygithub3 | |
parent | Fix imports to new environment (diff) | |
download | python-github3-cfcebaf1968a5ac1f6a09349643c8b0016d36b18.tar.xz python-github3-cfcebaf1968a5ac1f6a09349643c8b0016d36b18.zip |
Fix parse_args
Diffstat (limited to 'pygithub3')
-rw-r--r-- | pygithub3/core/client.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pygithub3/core/client.py b/pygithub3/core/client.py index d4247af..83d2d79 100644 --- a/pygithub3/core/client.py +++ b/pygithub3/core/client.py @@ -64,8 +64,10 @@ class Client(object): def wrapper(self, verb, resource, **kwargs): diffs = kwargs.viewkeys() - VALID_REQUEST_ARGS - new_params = kwargs.get('params') or {} - new_params.update({key: kwargs[key] for key in diffs}) + new_params = kwargs.get('params', {}) + for key in diffs: # Put each key in new_params and delete it + new_params[key] = kwargs[key] + del kwargs[key] kwargs['params'] = new_params return func(self, verb, resource, **kwargs) return wrapper |