mirror of
https://github.com/python/cpython.git
synced 2025-10-19 07:53:46 +00:00
Compare commits
2 commits
f09a6a2fc8
...
b81bab6190
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b81bab6190 | ||
![]() |
9fb32eb83e |
2 changed files with 7 additions and 9 deletions
|
@ -16,21 +16,16 @@ Documentation bugs
|
|||
==================
|
||||
|
||||
If you find a bug in this documentation or would like to propose an improvement,
|
||||
please submit a bug report on the :ref:`tracker <using-the-tracker>`. If you
|
||||
please submit a bug report on the :ref:`issue tracker <using-the-tracker>`. If you
|
||||
have a suggestion on how to fix it, include that as well.
|
||||
|
||||
You can also open a discussion item on our
|
||||
`Documentation Discourse forum <https://discuss.python.org/c/documentation/26>`_.
|
||||
|
||||
If you find a bug in the theme (HTML / CSS / JavaScript) of the
|
||||
documentation, please submit a bug report on the `python-doc-theme bug
|
||||
documentation, please submit a bug report on the `python-doc-theme issue
|
||||
tracker <https://github.com/python/python-docs-theme>`_.
|
||||
|
||||
If you're short on time, you can also email documentation bug reports to
|
||||
docs@python.org (behavioral bugs can be sent to python-list@python.org).
|
||||
'docs@' is a mailing list run by volunteers; your request will be noticed,
|
||||
though it may take a while to be processed.
|
||||
|
||||
.. seealso::
|
||||
|
||||
`Documentation bugs`_
|
||||
|
|
|
@ -836,12 +836,15 @@ def get_excepted_output(self, *args):
|
|||
return 10, None
|
||||
|
||||
def invoke_command_line(self, *args):
|
||||
args = ["-m", "site", *args]
|
||||
cmd_args = []
|
||||
if sys.flags.no_user_site:
|
||||
cmd_args.append("-s")
|
||||
cmd_args.extend(["-m", "site", *args])
|
||||
|
||||
with EnvironmentVarGuard() as env:
|
||||
env["PYTHONUTF8"] = "1"
|
||||
env["PYTHONIOENCODING"] = "utf-8"
|
||||
proc = spawn_python(*args, text=True, env=env,
|
||||
proc = spawn_python(*cmd_args, text=True, env=env,
|
||||
encoding='utf-8', errors='replace')
|
||||
|
||||
output = kill_python(proc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue