From abcce092a2569aa103f38677a05726960dba0fdb Mon Sep 17 00:00:00 2001 From: Josh Cannon Date: Thu, 22 May 2025 14:43:55 -0500 Subject: [PATCH 1/3] Update hashlib.rst --- Doc/library/hashlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index bb2d2fad23bdb8..8c6c1429da8172 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -284,7 +284,7 @@ a file or file-like object. Example: >>> import io, hashlib, hmac - >>> with open(hashlib.__file__, "rb") as f: + >>> with open("path/to/file", "rb") as f: ... digest = hashlib.file_digest(f, "sha256") ... >>> digest.hexdigest() # doctest: +ELLIPSIS From 39183384d6bc50854aa8f251c25ec041f61fdd8f Mon Sep 17 00:00:00 2001 From: Josh Cannon Date: Thu, 22 May 2025 15:46:56 -0500 Subject: [PATCH 2/3] Update Doc/library/hashlib.rst --- Doc/library/hashlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index 8c6c1429da8172..a38bdd4c972d4c 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -284,7 +284,7 @@ a file or file-like object. Example: >>> import io, hashlib, hmac - >>> with open("path/to/file", "rb") as f: + >>> with open("Doc/library/hashlib.rst", "rb") as f: ... digest = hashlib.file_digest(f, "sha256") ... >>> digest.hexdigest() # doctest: +ELLIPSIS From 0760ae8ae17d750a9160cb4808e5b4a19ea1bf73 Mon Sep 17 00:00:00 2001 From: Josh Cannon Date: Thu, 22 May 2025 16:08:55 -0500 Subject: [PATCH 3/3] Update hashlib.rst --- Doc/library/hashlib.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/hashlib.rst b/Doc/library/hashlib.rst index a38bdd4c972d4c..4818a4944a512a 100644 --- a/Doc/library/hashlib.rst +++ b/Doc/library/hashlib.rst @@ -284,7 +284,7 @@ a file or file-like object. Example: >>> import io, hashlib, hmac - >>> with open("Doc/library/hashlib.rst", "rb") as f: + >>> with open("library/hashlib.rst", "rb") as f: ... digest = hashlib.file_digest(f, "sha256") ... >>> digest.hexdigest() # doctest: +ELLIPSIS