From da536e8ae1190573cd78d73de6b3b8610c2d23b4 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Tue, 9 Nov 2021 21:50:01 +0000 Subject: [PATCH] Fix stdlib typos that would cause NameError or AttributeError exceptions --- mitogen/profiler.py | 2 +- tests/testlib.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mitogen/profiler.py b/mitogen/profiler.py index bbf6086a..512a593e 100644 --- a/mitogen/profiler.py +++ b/mitogen/profiler.py @@ -90,7 +90,7 @@ def merge_stats(outpath, inpaths): break time.sleep(0.2) - stats.dump_stats(outpath) + pstats.dump_stats(outpath) def generate_stats(outpath, tmpdir): diff --git a/tests/testlib.py b/tests/testlib.py index 019b35d7..d40ce573 100644 --- a/tests/testlib.py +++ b/tests/testlib.py @@ -144,7 +144,7 @@ def wait_for_port( if not pattern: # Success: We connected & there's no banner check to perform. - sock.shutdown(socket.SHUTD_RDWR) + sock.shutdown(socket.SHUT_RDWR) sock.close() return