Skip to content

Commit da536e8

Browse files
committed
Fix stdlib typos that would cause NameError or AttributeError exceptions
1 parent 39d02e9 commit da536e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mitogen/profiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def merge_stats(outpath, inpaths):
9090
break
9191
time.sleep(0.2)
9292

93-
stats.dump_stats(outpath)
93+
pstats.dump_stats(outpath)
9494

9595

9696
def generate_stats(outpath, tmpdir):

tests/testlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def wait_for_port(
144144

145145
if not pattern:
146146
# Success: We connected & there's no banner check to perform.
147-
sock.shutdown(socket.SHUTD_RDWR)
147+
sock.shutdown(socket.SHUT_RDWR)
148148
sock.close()
149149
return
150150

0 commit comments

Comments
 (0)