aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-03-08 12:28:44 +0500
committerEgor Tensin <Egor.Tensin@gmail.com>2022-03-08 12:28:44 +0500
commite04bfaaf79879cd6e85c9d8da0c1e63082191109 (patch)
treeccefed7fed9c070b44bda29ed5e74d5676f47967
parentsupport mirroring all of org's repositories (diff)
downloadcgitize-e04bfaaf79879cd6e85c9d8da0c1e63082191109.tar.gz
cgitize-e04bfaaf79879cd6e85c9d8da0c1e63082191109.zip
minor refactoring
-rw-r--r--cgitize/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cgitize/config.py b/cgitize/config.py
index 925dee7..3fd8aee 100644
--- a/cgitize/config.py
+++ b/cgitize/config.py
@@ -57,8 +57,8 @@ class MainSection(Section):
class ServiceSection(Section, ABC):
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
+ def __init__(self, impl):
+ super().__init__(impl)
self.repositories = RepositoriesSection(self.impl.get('repositories', {}))
self.users = UsersSection(self.impl.get('users', {}))
@@ -80,8 +80,8 @@ class ServiceSection(Section, ABC):
class GitHubSection(ServiceSection):
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
+ def __init__(self, impl):
+ super().__init__(impl)
self.orgs = OrgsSection(self.impl.get('organizations', {}))
@property