aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--cgitize/config.py9
-rw-r--r--cgitize/git.py2
-rw-r--r--cgitize/repo.py3
3 files changed, 3 insertions, 11 deletions
diff --git a/cgitize/config.py b/cgitize/config.py
index d8314fa..8a68906 100644
--- a/cgitize/config.py
+++ b/cgitize/config.py
@@ -3,18 +3,13 @@
# For details, see https://github.com/egor-tensin/cgitize.
# Distributed under the MIT License.
-import configparser
-import importlib
-import logging
import os
-import sys
+
+import tomli
from cgitize.bitbucket import Bitbucket
from cgitize.github import GitHub
from cgitize.repo import Repo
-from cgitize.utils import chdir
-
-import tomli
class Section:
diff --git a/cgitize/git.py b/cgitize/git.py
index 5acac20..a32fd34 100644
--- a/cgitize/git.py
+++ b/cgitize/git.py
@@ -62,7 +62,7 @@ class Config:
return name
def format(self):
- result = f'[self.format_name(self.name)]\n'
+ result = f'[{self.format_name(self.name)}]\n'
result += ''.join((var.format() for var in self.variables))
return result
diff --git a/cgitize/repo.py b/cgitize/repo.py
index 4c91968..d224351 100644
--- a/cgitize/repo.py
+++ b/cgitize/repo.py
@@ -3,9 +3,6 @@
# For details, see https://github.com/egor-tensin/cgitize.
# Distributed under the MIT License.
-import abc
-import os.path
-
from cgitize.utils import url_remove_auth, url_replace_auth