Skip to content

Commit 7d33525

Browse files
committed
Merge branch 'main' into wasm_repl
2 parents 26ddd07 + 9c7b2af commit 7d33525

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

Doc/howto/logging.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ reading the following sections. If you're ready for that, grab some of your
302302
favourite beverage and carry on.
303303

304304
If your logging needs are simple, then use the above examples to incorporate
305-
logging into your own scripts, and if you run into problems or don't
306-
understand something, please post a question on the comp.lang.python Usenet
307-
group (available at https://groups.google.com/g/comp.lang.python) and you
308-
should receive help before too long.
305+
logging into your own scripts, and if you run into problems or don't understand
306+
something, please post a question in the Help category of the `Python
307+
discussion forum <https://discuss.python.org/c/help/7>`_ and you should receive
308+
help before too long.
309309

310310
Still here? You can carry on reading the next few sections, which provide a
311311
slightly more advanced/in-depth tutorial than the basic one above. After that,

Python/instrumentation.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,18 +2558,22 @@ PyObject *_Py_CreateMonitoringObject(void)
25582558
err = PyObject_SetAttrString(events, "NO_EVENTS", _PyLong_GetZero());
25592559
if (err) goto error;
25602560
PyObject *val = PyLong_FromLong(PY_MONITORING_DEBUGGER_ID);
2561+
assert(val != NULL); /* Can't return NULL because the int is small. */
25612562
err = PyObject_SetAttrString(mod, "DEBUGGER_ID", val);
25622563
Py_DECREF(val);
25632564
if (err) goto error;
25642565
val = PyLong_FromLong(PY_MONITORING_COVERAGE_ID);
2566+
assert(val != NULL);
25652567
err = PyObject_SetAttrString(mod, "COVERAGE_ID", val);
25662568
Py_DECREF(val);
25672569
if (err) goto error;
25682570
val = PyLong_FromLong(PY_MONITORING_PROFILER_ID);
2571+
assert(val != NULL);
25692572
err = PyObject_SetAttrString(mod, "PROFILER_ID", val);
25702573
Py_DECREF(val);
25712574
if (err) goto error;
25722575
val = PyLong_FromLong(PY_MONITORING_OPTIMIZER_ID);
2576+
assert(val != NULL);
25732577
err = PyObject_SetAttrString(mod, "OPTIMIZER_ID", val);
25742578
Py_DECREF(val);
25752579
if (err) goto error;

Tools/wasm/emscripten/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def configure_emscripten_python(context, working_dir):
216216
text=True,
217217
capture_output=True,
218218
)
219-
host_runner = res.stdout
219+
host_runner = res.stdout.strip()
220220
pkg_config_path_dir = (PREFIX_DIR / "lib/pkgconfig/").resolve()
221221
env_additions = {
222222
"CONFIG_SITE": config_site,

0 commit comments

Comments
 (0)