Skip to content

Commit

Permalink
fix: close file
Browse files Browse the repository at this point in the history
  • Loading branch information
m9810223 committed Apr 19, 2024
1 parent e65625b commit 13a9c80
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion separate_intermediates/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _concat_ca_certificates_of(peer):
p.intermediate_ca_certificate_path(peer),
p.root_ca_certificate_path()],
stdout=chain_file)
chain_file.close
chain_file.close()


def generate(opts):
Expand Down
6 changes: 3 additions & 3 deletions tls_gen/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ def prepare_ca_directory(dir_name):

serial = open(p.relative_path(dir_name, "serial"), "w")
serial.write("01")
serial.close
serial.close()

index_txt = open(p.relative_path(dir_name, "index.txt"), "w")
index_txt.close
index_txt.close()
index_txt = open(p.relative_path(dir_name, "index.txt.attr"), "w")
index_txt.close
index_txt.close()

#
# Root CA
Expand Down
2 changes: 1 addition & 1 deletion two_shared_intermediates/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _concat_certificates():
p.intermediate_ca_certificate_path("1"),
p.root_ca_certificate_path()],
stdout=chain_file)
chain_file.close
chain_file.close()


def generate(opts):
Expand Down

0 comments on commit 13a9c80

Please sign in to comment.