Skip to content

Commit

Permalink
Adjust whitespace to satisfy black linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jsf9k committed Aug 1, 2024
1 parent 3121742 commit 2632478
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions gce-scripts/combine_shards.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Combines pshtt shards into one final data file."""

# Standard Python Libraries
import json
import sys
Expand Down
6 changes: 3 additions & 3 deletions src/pshtt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ def to_object(self):
obj["https_expired_cert"] = self.https_expired_cert
obj["https_self_signed_cert"] = self.https_self_signed_cert
obj["https_cert_chain_len"] = self.https_cert_chain_len
obj[
"https_missing_intermediate_cert"
] = self.https_missing_intermediate_cert
obj["https_missing_intermediate_cert"] = (
self.https_missing_intermediate_cert
)
obj["hsts"] = self.hsts
obj["hsts_header"] = self.hsts_header
obj["hsts_max_age"] = self.hsts_max_age
Expand Down
4 changes: 2 additions & 2 deletions src/pshtt/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ def write(content, destination, binary=False):
if parent != "":
mkdir_p(parent)

with open(destination, "bw") if binary else open(
destination, "w", encoding="utf-8"
with (
open(destination, "bw") if binary else open(destination, "w", encoding="utf-8")
) as f:
f.write(content)

Expand Down

0 comments on commit 2632478

Please sign in to comment.