Skip to content

Commit 59986e7

Browse files
TheGreatApollyonCarreau
authored andcommitted
fix: correct typos
1 parent 0e9d34d commit 59986e7

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎IPython/core/magics/execution.py‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ def time(self, line="", cell=None, local_ns=None):
13921392
wall_st = wtime()
13931393
# Track whether to propagate exceptions or exit
13941394
exit_on_interrupt = False
1395-
interrupt_occured = False
1395+
interrupt_occurred = False
13961396
captured_exception = None
13971397

13981398
if mode == "eval":
@@ -1401,11 +1401,11 @@ def time(self, line="", cell=None, local_ns=None):
14011401
out = eval(code, glob, local_ns)
14021402
except KeyboardInterrupt as e:
14031403
captured_exception = e
1404-
interrupt_occured = True
1404+
interrupt_occurred = True
14051405
exit_on_interrupt = True
14061406
except Exception as e:
14071407
captured_exception = e
1408-
interrupt_occured = True
1408+
interrupt_occurred = True
14091409
if not args.no_raise_error:
14101410
exit_on_interrupt = True
14111411
end = clock2()
@@ -1420,11 +1420,11 @@ def time(self, line="", cell=None, local_ns=None):
14201420
out = eval(code_2, glob, local_ns)
14211421
except KeyboardInterrupt as e:
14221422
captured_exception = e
1423-
interrupt_occured = True
1423+
interrupt_occurred = True
14241424
exit_on_interrupt = True
14251425
except Exception as e:
14261426
captured_exception = e
1427-
interrupt_occured = True
1427+
interrupt_occurred = True
14281428
if not args.no_raise_error:
14291429
exit_on_interrupt = True
14301430
end = clock2()
@@ -1446,7 +1446,7 @@ def time(self, line="", cell=None, local_ns=None):
14461446
print(f"Compiler : {_format_time(tc)}")
14471447
if tp > tp_min:
14481448
print(f"Parser : {_format_time(tp)}")
1449-
if interrupt_occured:
1449+
if interrupt_occurred:
14501450
if exit_on_interrupt and captured_exception:
14511451
raise captured_exception
14521452
return

‎IPython/core/tbtools.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _tokens_filename(
174174
175175
Parameters
176176
----------
177-
em: wether bold or not
177+
em: whether bold or not
178178
file : str
179179
"""
180180
assert file is None or isinstance(file, str)

‎IPython/utils/_process_common.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def arg_split_with_quotes(
233233
if that token had any single- or double-quote characters in ``commandline``.
234234
235235
Useful for callers like ``%run`` that want to honor shell quoting when
236-
deciding wether to apply further expansion (glob, tilde) to a token.
236+
deciding whether to apply further expansion (glob, tilde) to a token.
237237
238238
Detection is shlex-based on both passes so the quote semantics are the
239239
same on Posix and Windows. If ``strict`` is False, malformed input (e.g.

0 commit comments

Comments
 (0)