You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the introduction of PEP 597, relying on the default value of encoding for functions that read/write files is no longer recommended,
and developers have been incentivised to run tests using PYTHONWARNDEFAULTENCODING=1 to identify when the encoding argument
is not given.
As a result, when PYTHONWARNDEFAULTENCODING=1 is set on the CI
environment responsible for building the docs, sphinx_reredirects
will emit a EncodingWarning: 'encoding' argument not specified.
The objective of this change is to comply with the PEP's recommendations
and avoid the EncodingWarning from being emitted.
(Migrated from https://gitlab.com/documatt/sphinx-reredirects/-/merge_requests/11. Requested 3 months ago by Anderson Bravalheri @abravalheri.)
With the introduction of PEP 597, relying on the default value of
encoding
for functions that read/write files is no longer recommended,and developers have been incentivised to run tests using
PYTHONWARNDEFAULTENCODING=1
to identify when theencoding
argumentis not given.
As a result, when
PYTHONWARNDEFAULTENCODING=1
is set on the CIenvironment responsible for building the docs,
sphinx_reredirects
will emit a
EncodingWarning: 'encoding' argument not specified
.The objective of this change is to comply with the PEP's recommendations
and avoid the
EncodingWarning
from being emitted.(Proposed changes: https://gitlab.com/documatt/sphinx-reredirects/-/merge_requests/11/diffs?commit_id=93dd8ebe5afcbbd57aa3e70752687b45f319d355.)
The text was updated successfully, but these errors were encountered: