Skip to content

Commit 9cf6e87

Browse files
committed
ci: Minor fixes from pre-commit run
1 parent 9eb6dee commit 9cf6e87

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ root CA signs:
373373
>>> ca1_csr = x509.CSR.new(ca1_key, "CN=Intermediate CA", hashlib.sha256())
374374
>>>
375375
>>> ca1_crt = ca0_crt.sign(
376-
... ca1_csr, ca0_key, now, now + dt.timedelta(days=90), 0x123456,
376+
... ca1_csr, ca0_key, now, now + dt.timedelta(days=90), 0x123456,
377377
... basic_constraints=x509.BasicConstraints(ca=True, max_path_length=3))
378378
...
379379

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ help:
1616
# Catch-all target: route all unknown targets to Sphinx using the new
1717
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1818
%: Makefile
19-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/source/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ Indices and tables
2626
* :ref:`genindex`
2727
* :ref:`modindex`
2828
* :ref:`search`
29-

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def mbedtls_version_info(lib):
7070
def check_mbedtls_support(version, url):
7171
library = ctypes.util.find_library("mbedtls")
7272
if not library:
73-
sys.stderr.write(" Library not found{sep}".format(sep=os.linesep))
73+
sys.stderr.write(f" Library not found{os.linesep}")
7474
sys.stderr.write(
7575
" The paths are probably not set correctly but let's try anyway{sep}".format(
7676
sep=os.linesep
@@ -79,16 +79,16 @@ def check_mbedtls_support(version, url):
7979
return
8080
try:
8181
lib = ctypes.cdll.LoadLibrary(library)
82-
sys.stdout.write(" loading: {!r}\n".format(lib._name))
82+
sys.stdout.write(f" loading: {lib._name!r}\n")
8383
sys.stdout.write(
8484
" mbedtls version: {!s}{sep}".format(
8585
mbedtls_version(lib), sep=os.linesep
8686
)
8787
)
88-
sys.stdout.write(" python-mbedtls version: {0}\n".format(VERSION))
88+
sys.stdout.write(f" python-mbedtls version: {VERSION}\n")
8989
except OSError as exc:
9090
lib = None
91-
sys.stderr.write(" {exc!s}{sep}".format(exc=exc, sep=os.linesep))
91+
sys.stderr.write(f" {exc!s}{os.linesep}")
9292
if lib and mbedtls_version_info(lib) < version[:2]:
9393
message = (
9494
" python-mbedtls requires at least mbedtls {major}.{minor}".format(

0 commit comments

Comments
 (0)