Skip to content

Commit

Permalink
Drop atomic_save
Browse files Browse the repository at this point in the history
  • Loading branch information
lpsinger committed May 5, 2022
1 parent e70d47a commit 1a0a2bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions certbot_pkcs12.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"""Certbot PKCS#12 installer plugin."""
from boltons.fileutils import atomic_save
from certbot import interfaces
from certbot.display import util as display_util
from certbot.plugins import common
Expand Down Expand Up @@ -62,7 +61,7 @@ def deploy_cert(self, domain, cert_path, key_path,
domain.encode(), key, cert, chain, encryption)

location = self.conf('location')
with atomic_save(location) as f:
with open(location, 'wb') as f:
f.write(out_bytes)
display_util.notify(f'The PKCS#12 archive is stored at {location}.')

Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ classifiers =

[options]
install_requires =
boltons
certbot >= 1.19.0
cryptography >= 3.0
py_modules = certbot_pkcs12
Expand Down

0 comments on commit 1a0a2bb

Please sign in to comment.