Skip to content

Commit 9264411

Browse files
committed
Fix lint issues
1 parent 8a5d013 commit 9264411

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

mtls/mtls.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ def __init__(self, server, options={}):
5252
if options["config"] is None:
5353
self.CONFIG_FOLDER_PATH = f"{self.HOME}/.config/mtls"
5454
self.CONFIG_FILE = "config.ini"
55-
self.config_file_path = f"{self.CONFIG_FOLDER_PATH}/{self.CONFIG_FILE}"
55+
self.config_file_path = (
56+
f"{self.CONFIG_FOLDER_PATH}/{self.CONFIG_FILE}"
57+
)
5658
else:
5759
self.CONFIG_FOLDER_PATH = "/".join(
5860
options["config"].split("/")[:-1]
@@ -79,7 +81,9 @@ def __init__(self, server, options={}):
7981
self.BASE_SERVER_PATH = f"{self.CONFIG_FOLDER_PATH}/{self.server}"
8082
self.pfx_path = f"{self.BASE_SERVER_PATH}/{self.server}.pfx"
8183
self.cert_file_path = f"{self.BASE_SERVER_PATH}/{self.server}.pem"
82-
self.ca_cert_file_path = f"{self.BASE_SERVER_PATH}/{self.server}_Root_CA.pem"
84+
self.ca_cert_file_path = (
85+
f"{self.BASE_SERVER_PATH}/{self.server}_Root_CA.pem"
86+
)
8387
self.crl_file_path = f"{self.BASE_SERVER_PATH}/crl.pem"
8488

8589
def check_revoked(self, cert):
@@ -565,9 +569,11 @@ def _create_db(self):
565569
)
566570

567571
def _get_certdb_paths(self):
568-
paths = [
569-
self._primary_certdb_location()
570-
] + self._firefox_certdb_location() + self._chrome_certdb_location()
572+
paths = (
573+
[self._primary_certdb_location()]
574+
+ self._firefox_certdb_location()
575+
+ self._chrome_certdb_location()
576+
)
571577
return paths
572578

573579
def _primary_certdb_location(self):

0 commit comments

Comments
 (0)