From 9eb8fb9be37d1481b9940d0d9a88a24f58d0b6a5 Mon Sep 17 00:00:00 2001 From: Michael Howitz Date: Tue, 16 Nov 2021 09:58:00 +0100 Subject: [PATCH] Reduce resource_string documentation confusion. Besides the name the function returns bytes. --- docs/pkg_resources.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/pkg_resources.rst b/docs/pkg_resources.rst index fb5fc0774f..c115818961 100644 --- a/docs/pkg_resources.rst +++ b/docs/pkg_resources.rst @@ -1151,7 +1151,7 @@ paths. will be read as-is. ``resource_string(package_or_requirement, resource_name)`` - Return the specified resource as a string. The resource is read in + Return the specified resource as ``bytes``. The resource is read in binary fashion, such that the returned string contains exactly the bytes that are stored in the resource.