aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pygithub3/core/client.py2
-rw-r--r--pygithub3/exceptions.py2
-rw-r--r--pygithub3/services/base.py2
-rw-r--r--pygithub3/services/repos.py6
-rw-r--r--pygithub3/services/users.py10
-rw-r--r--pygithub3/tests/services/test_core.py4
6 files changed, 13 insertions, 13 deletions
diff --git a/pygithub3/core/client.py b/pygithub3/core/client.py
index 9c9d6c2..a9e9ad4 100644
--- a/pygithub3/core/client.py
+++ b/pygithub3/core/client.py
@@ -99,7 +99,7 @@ class Client(object):
def put(self, request, **kwargs):
response = self.request('put', request, **kwargs)
# assert response.status_code != '204'
- # I don't do an assert. See `services.base.Base._put` comment
+ # I don't do an assert. See `services.base.Service._put` comment
return response
def delete(self, request, **kwargs):
diff --git a/pygithub3/exceptions.py b/pygithub3/exceptions.py
index c44c371..a467256 100644
--- a/pygithub3/exceptions.py
+++ b/pygithub3/exceptions.py
@@ -37,6 +37,6 @@ class UnprocessableEntity(Exception):
class NotFound(Exception):
""" Raised when server response is 404
- Catched with a pygithub3-exception to `services.base.Base._bool` method
+ Catched with a pygithub3-exception to `services.base.Service._bool` method
"""
pass
diff --git a/pygithub3/services/base.py b/pygithub3/services/base.py
index 3c81f84..a8c7258 100644
--- a/pygithub3/services/base.py
+++ b/pygithub3/services/base.py
@@ -7,7 +7,7 @@ from pygithub3.requests import Factory
from pygithub3.core.errors import NotFound
-class Base(object):
+class Service(object):
def __init__(self, **config):
self._client = Client(**config)
diff --git a/pygithub3/services/repos.py b/pygithub3/services/repos.py
index 97294ae..0de4045 100644
--- a/pygithub3/services/repos.py
+++ b/pygithub3/services/repos.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
-from .base import Base
+from .base import Service
-class Collaborator(Base):
+class Collaborator(Service):
def list(self, user=None, repo=None):
request = self.make_request('repos.collaborators.list',
@@ -34,7 +34,7 @@ class Collaborator(Base):
self._delete(request)
-class Repo(Base):
+class Repo(Service):
def __init__(self, **config):
self.collaborators = Collaborator(**config)
diff --git a/pygithub3/services/users.py b/pygithub3/services/users.py
index 84002b2..00aee53 100644
--- a/pygithub3/services/users.py
+++ b/pygithub3/services/users.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
-from .base import Base
+from .base import Service
-class Keys(Base):
+class Keys(Service):
def list(self):
request = self.make_request('users.keys.list')
@@ -31,7 +31,7 @@ class Keys(Base):
self._delete(request)
-class Followers(Base):
+class Followers(Service):
def list(self, user=None):
request = self.make_request('users.followers.list',
@@ -59,7 +59,7 @@ class Followers(Base):
self._delete(request)
-class Emails(Base):
+class Emails(Service):
def list(self):
request = self.make_request('users.emails.list')
@@ -74,7 +74,7 @@ class Emails(Base):
self._delete(request)
-class User(Base):
+class User(Service):
def __init__(self, **kwargs):
self.keys = Keys(**kwargs)
diff --git a/pygithub3/tests/services/test_core.py b/pygithub3/tests/services/test_core.py
index 6e5b2b4..ccddee7 100644
--- a/pygithub3/tests/services/test_core.py
+++ b/pygithub3/tests/services/test_core.py
@@ -6,7 +6,7 @@ from mock import patch
import requests
-from pygithub3.services.base import Base
+from pygithub3.services.base import Service
from pygithub3.core.result import Result
from pygithub3.tests.utils.base import DummyRequest, mock_response
from .utils import _
@@ -16,7 +16,7 @@ from .utils import _
class TestServiceCalls(TestCase):
def setUp(self):
- self.s = Base()
+ self.s = Service()
self.r = DummyRequest()
self.args = dict(arg1='arg1', arg2='arg2')