aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pygithub3/core/result.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pygithub3/core/result.py b/pygithub3/core/result.py
index 0c44b1b..c2928d2 100644
--- a/pygithub3/core/result.py
+++ b/pygithub3/core/result.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
-from urlparse import urlparse, parse_qs
+import functools
from .link import Link
@@ -10,9 +10,8 @@ class Method(object):
""" Lazy support """
def __init__(self, method, request, **method_args):
- self.method = method
- self.request = request
- self.args = method_args
+ self.method = functools.partial(method, request, **method_args)
+ self.resource = request.resource
self.cache = {}
def cached(func):