From d0c689d1dac553bca91e42c08a7b3f76455132a6 Mon Sep 17 00:00:00 2001 From: LanderU Date: Thu, 1 Aug 2019 20:59:17 +0200 Subject: [PATCH 1/2] Fix code style according to pep8 Signed-off-by: LanderU --- scripts/import_base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/import_base.py b/scripts/import_base.py index 8ccb285..3246b49 100644 --- a/scripts/import_base.py +++ b/scripts/import_base.py @@ -5,13 +5,14 @@ from github import Github import os + class RVDImport: def __init__(self): # Authentication for user filing issue (must have read/write access to # repository to add issue to) try: - self.token = os.environ['GITHUB_TOKEN'] #ffb0d091869e647e3db4baa4d71dcb5c3c6a17d7 + self.token = os.environ['GITHUB_TOKEN'] # ffb0d091869e647e3db4baa4d71dcb5c3c6a17d7 except KeyError: print("Make sure that you've GITHUB_TOKEN exported") exit(1) @@ -19,7 +20,6 @@ def __init__(self): # or using an access token self.g = Github(self.token) - # def __init__(self, user, password): # # TODO # username = os.environ['GITHUB_USER'] From 07ecca13751acbbfe330db5e1837021b13fd216f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mayoral=20Vilches?= Date: Sun, 4 Aug 2019 12:37:39 +0200 Subject: [PATCH 2/2] Update scripts/import_base.py --- scripts/import_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/import_base.py b/scripts/import_base.py index 3246b49..c90f348 100644 --- a/scripts/import_base.py +++ b/scripts/import_base.py @@ -12,7 +12,7 @@ def __init__(self): # Authentication for user filing issue (must have read/write access to # repository to add issue to) try: - self.token = os.environ['GITHUB_TOKEN'] # ffb0d091869e647e3db4baa4d71dcb5c3c6a17d7 + self.token = os.environ['GITHUB_TOKEN'] except KeyError: print("Make sure that you've GITHUB_TOKEN exported") exit(1)