aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/requests/__init__.py')
-rw-r--r--pygithub3/requests/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygithub3/requests/__init__.py b/pygithub3/requests/__init__.py
index 79f9cb9..2209fc5 100644
--- a/pygithub3/requests/__init__.py
+++ b/pygithub3/requests/__init__.py
@@ -42,10 +42,10 @@ class Request(object):
resource = Raw
body_schema = ()
- def __init__(self, args):
+ def __init__(self, **kwargs):
""" """
- self.body = args.pop('body', None)
- self.args = args
+ self.body = kwargs.pop('body', None)
+ self.args = kwargs
self.clean()
def clean(self):
@@ -114,6 +114,6 @@ class Factory(object):
@__validate
@__dispatch
def __call__(self, request='', **kwargs):
- request = request(kwargs)
+ request = request(**kwargs)
assert isinstance(request, Request)
return request