Skip to content

Commit c5891d0

Browse files
generatedunixname1734921407115435facebook-github-bot
authored andcommitted
Import upstream CPython branch '3.14'
Summary: Python `3.14.0rc1+` (`3.14`) was **published** on 2025-07-27 06:54:41+00:00. # Commit Info Base: (`3.14.0rc1+`) - `5746e067fd07c9ec396e2594eb128f9418acb277` (commit date: 2025-07-25 16:08:28+00:00) Imported: (`3.14.0rc1+`) - `3.14` (commit date: 2025-07-27 06:54:41+00:00) Reviewed By: itamaro Differential Revision: D79052621 fbshipit-source-id: 2b15ae27ea8342f0e1143660a84f3ffb3908dbcf
1 parent d4e549c commit c5891d0

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/tools/templates/customsourcelink.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ <h3>{{ _('This page') }}</h3>
44
<ul class="this-page-menu">
55
<li><a href="{{ pathto('bugs') }}">{% trans %}Report a bug{% endtrans %}</a></li>
66
<li>
7-
<a href="https://github.com/python/cpython/blob/main/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}"
7+
<a href="https://github.com/python/cpython/blob/main/Doc/{{ sourcename|replace('.rst.txt', '.rst') }}?plain=1"
88
rel="nofollow">{{ _('Show source') }}
99
</a>
1010
</li>

Lib/test/test_perf_profiler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
318318
stdout=subprocess.PIPE,
319319
stderr=subprocess.PIPE,
320320
env=env,
321+
text=True,
321322
)
322323
if proc.returncode:
323324
print(proc.stderr, file=sys.stderr)
@@ -327,10 +328,10 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
327328
jit_output_file = cwd + "/jit_output.dump"
328329
command = ("perf", "inject", "-j", "-i", output_file, "-o", jit_output_file)
329330
proc = subprocess.run(
330-
command, stderr=subprocess.PIPE, stdout=subprocess.PIPE, env=env
331+
command, stderr=subprocess.PIPE, stdout=subprocess.PIPE, env=env, text=True
331332
)
332333
if proc.returncode:
333-
print(proc.stderr)
334+
print(proc.stderr, file=sys.stderr)
334335
raise ValueError(f"Perf failed with return code {proc.returncode}")
335336
# Copy the jit_output_file to the output_file
336337
os.rename(jit_output_file, output_file)
@@ -342,10 +343,9 @@ def run_perf(cwd, *args, use_jit=False, **env_vars):
342343
stderr=subprocess.PIPE,
343344
env=env,
344345
check=True,
346+
text=True,
345347
)
346-
return proc.stdout.decode("utf-8", "replace"), proc.stderr.decode(
347-
"utf-8", "replace"
348-
)
348+
return proc.stdout, proc.stderr
349349

350350

351351
class TestPerfProfilerMixin:

0 commit comments

Comments
 (0)