We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ea5b5c commit ed0b5d1Copy full SHA for ed0b5d1
pygithub3/core/result.py
@@ -1,7 +1,7 @@
1
#!/usr/bin/env python
2
# -*- encoding: utf-8 -*-
3
4
-from urlparse import urlparse, parse_qs
+import functools
5
6
from .link import Link
7
@@ -10,9 +10,8 @@ class Method(object):
10
""" Lazy support """
11
12
def __init__(self, method, request, **method_args):
13
- self.method = method
14
- self.request = request
15
- self.args = method_args
+ self.method = functools.partial(method, request, **method_args)
+ self.resource = request.resource
16
self.cache = {}
17
18
def cached(func):
0 commit comments