diff options
| author | 2012-02-17 07:32:19 +0100 | |
|---|---|---|
| committer | 2012-02-17 07:32:19 +0100 | |
| commit | c99a6c5be7f418726bc9ee233379357c6e5b0294 (patch) | |
| tree | ff4f2c9a13e86767850bd536c2298d32d63028d5 /pygithub3/services | |
| parent | Repos collaborators added (diff) | |
| download | python-github3-c99a6c5be7f418726bc9ee233379357c6e5b0294.tar.xz python-github3-c99a6c5be7f418726bc9ee233379357c6e5b0294.zip | |
Services' renaming: base.Base to base.Service
Diffstat (limited to 'pygithub3/services')
| -rw-r--r-- | pygithub3/services/base.py | 2 | ||||
| -rw-r--r-- | pygithub3/services/repos.py | 6 | ||||
| -rw-r--r-- | pygithub3/services/users.py | 10 |
3 files changed, 9 insertions, 9 deletions
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) |
