Fix stdlib typos that would cause NameError or AttributeError exceptions

This commit is contained in:
Alex Willmer 2021-11-09 21:50:01 +00:00
parent 39d02e9d59
commit da536e8ae1
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -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