Update documentation to match more aggressive absolute path exclusion in resources.
diff --git a/changelog.d/1635.change.rst b/changelog.d/1635.change.rst index 7c35dfd..d23f3fe 100644 --- a/changelog.d/1635.change.rst +++ b/changelog.d/1635.change.rst
@@ -1 +1 @@ -Resource paths are passed to ``pkg_resources.resource_string`` and similar no longer accept paths that traverse parents or begin with a leading ``/``. Violations of this expectation raise DeprecationWarnings and will become errors. +Resource paths are passed to ``pkg_resources.resource_string`` and similar no longer accept paths that traverse parents, that begin with a leading ``/``. Violations of this expectation raise DeprecationWarnings and will become errors. Additionally, any paths that are absolute on Windows are strictly disallowed and will raise ValueErrors.
diff --git a/docs/pkg_resources.txt b/docs/pkg_resources.txt index cdc1a5a..806f1b1 100644 --- a/docs/pkg_resources.txt +++ b/docs/pkg_resources.txt
@@ -1133,8 +1133,7 @@ distribution. Note that resource names must be ``/``-separated paths rooted at the package, -cannot contain relative names like ``".."``, and cannot begin with a -leading ``/``. Do *not* use +cannot contain relative names like ``".."``, and cannot be absolute. Do *not* use ``os.path`` routines to manipulate resource paths, as they are *not* filesystem paths.