aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/core/client.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-03 14:45:32 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-03 14:46:54 +0100
commitf01bc94a33d8644da65b5fa895c222e9ee057b50 (patch)
tree3bfc837901a54f97a30f1d24431d8322906de192 /pygithub3/core/client.py
parentPypi environment by setuptools (diff)
downloadpython-github3-f01bc94a33d8644da65b5fa895c222e9ee057b50.tar.xz
python-github3-f01bc94a33d8644da65b5fa895c222e9ee057b50.zip
Fix imports to new environment
Absolute imports as PEP8 tells
Diffstat (limited to '')
-rw-r--r--pygithub3/core/client.py (renamed from github3/core/client.py)4
1 files changed, 2 insertions, 2 deletions
diff --git a/github3/core/client.py b/pygithub3/core/client.py
index 99a88f0..d4247af 100644
--- a/github3/core/client.py
+++ b/pygithub3/core/client.py
@@ -2,8 +2,8 @@
# -*- encoding: utf-8 -*-
import requests
-from errors import GithubError
+from .errors import GithubError
VALID_REQUEST_ARGS = set((
'params', 'data', 'headers', 'cookies', 'files', 'auth', 'timeout',
@@ -65,7 +65,7 @@ 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.update({key: kwargs[key] for key in diffs})
kwargs['params'] = new_params
return func(self, verb, resource, **kwargs)
return wrapper