Skip to content

Commit 355a5cd

Browse files
[3.11] Fix extraneous backslashes in hashlib docs (GH-109468) (#109531)
Fix extraneous backslashes in hashlib docs (GH-109468) (cherry picked from commit ce5b3e1) Co-authored-by: Anthony Sottile <[email protected]>
1 parent e15b663 commit 355a5cd

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Doc/library/hashlib.rst

+12-12
Original file line numberDiff line numberDiff line change
@@ -131,16 +131,16 @@ Using :func:`new` with an algorithm name:
131131
'031edd7d41651593c5fe5c006fa5752b37fddff7bc4e843aa6af0c950f4b9406'
132132

133133

134-
.. function:: md5([, data], \*, usedforsecurity=True)
135-
.. function:: sha1([, data], \*, usedforsecurity=True)
136-
.. function:: sha224([, data], \*, usedforsecurity=True)
137-
.. function:: sha256([, data], \*, usedforsecurity=True)
138-
.. function:: sha384([, data], \*, usedforsecurity=True)
139-
.. function:: sha512([, data], \*, usedforsecurity=True)
140-
.. function:: sha3_224([, data], \*, usedforsecurity=True)
141-
.. function:: sha3_256([, data], \*, usedforsecurity=True)
142-
.. function:: sha3_384([, data], \*, usedforsecurity=True)
143-
.. function:: sha3_512([, data], \*, usedforsecurity=True)
134+
.. function:: md5([, data], *, usedforsecurity=True)
135+
.. function:: sha1([, data], *, usedforsecurity=True)
136+
.. function:: sha224([, data], *, usedforsecurity=True)
137+
.. function:: sha256([, data], *, usedforsecurity=True)
138+
.. function:: sha384([, data], *, usedforsecurity=True)
139+
.. function:: sha512([, data], *, usedforsecurity=True)
140+
.. function:: sha3_224([, data], *, usedforsecurity=True)
141+
.. function:: sha3_256([, data], *, usedforsecurity=True)
142+
.. function:: sha3_384([, data], *, usedforsecurity=True)
143+
.. function:: sha3_512([, data], *, usedforsecurity=True)
144144

145145
Named constructors such as these are faster than passing an algorithm name to
146146
:func:`new`.
@@ -234,8 +234,8 @@ A hash object has the following methods:
234234
SHAKE variable length digests
235235
-----------------------------
236236

237-
.. function:: shake_128([, data], \*, usedforsecurity=True)
238-
.. function:: shake_256([, data], \*, usedforsecurity=True)
237+
.. function:: shake_128([, data], *, usedforsecurity=True)
238+
.. function:: shake_256([, data], *, usedforsecurity=True)
239239

240240
The :func:`shake_128` and :func:`shake_256` algorithms provide variable
241241
length digests with length_in_bits//2 up to 128 or 256 bits of security.

0 commit comments

Comments
 (0)