aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-09 23:10:07 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-09 23:10:07 +0100
commitb818dcc8639ca1cbcf8144c04f937ba19f8fa6cf (patch)
tree4bce8b6e1c73bab72f7a896b0eaf218c0ab4262e /pygithub3/requests
parentRequests tests (diff)
downloadpython-github3-b818dcc8639ca1cbcf8144c04f937ba19f8fa6cf.tar.xz
python-github3-b818dcc8639ca1cbcf8144c04f937ba19f8fa6cf.zip
Easier requests.Factory builds
Diffstat (limited to 'pygithub3/requests')
-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