mirror of
https://github.com/certbot/certbot.git
synced 2026-07-31 18:25:24 +02:00
Minor bugfixes (#7891)
* Fix dangerous default argument * Remove unused imports * Remove unnecessary comprehension * Use literal syntax to create data structure * Use literal syntax instead of function calls to create data structure Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent
316e4640f8
commit
8e4dc0a48c
@@ -124,7 +124,9 @@ def _check_version(version_str, major_version):
|
||||
return False
|
||||
|
||||
|
||||
def subprocess_with_print(cmd, env=os.environ, shell=False):
|
||||
def subprocess_with_print(cmd, env=None, shell=False):
|
||||
if env is None:
|
||||
env = os.environ
|
||||
print('+ {0}'.format(subprocess.list2cmdline(cmd)) if isinstance(cmd, list) else cmd)
|
||||
subprocess.check_call(cmd, env=env, shell=shell)
|
||||
|
||||
|
||||
@@ -17,7 +17,6 @@ import sys
|
||||
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||
import josepy as jose
|
||||
|
||||
from acme import client as acme_client
|
||||
|
||||
Reference in New Issue
Block a user