Skip to content

Commit 83b71c6

Browse files
committed
Fix Typo and mutable default argument.
1 parent 783a55d commit 83b71c6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ipykernel/ipkernel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ def do_execute(self, code, silent, store_history=True,
243243

244244
# Payloads should be retrieved regardless of outcome, so we can both
245245
# recover partial output (that could have been generated early in a
246-
# block, before an error) and clear the payload system always.
246+
# block, before an error) and always clear the payload system.
247247
reply_content[u'payload'] = shell.payload_manager.read_payload()
248-
# Be agressive about clearing the payload because we don't want
248+
# Be aggressive about clearing the payload because we don't want
249249
# it to sit in memory until the next execute_request comes in.
250250
shell.payload_manager.clear_payload()
251251

ipykernel/kernelspec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
RESOURCES = pjoin(os.path.dirname(__file__), 'resources')
2323

2424

25-
def make_ipkernel_cmd(mod='ipykernel', executable=None, extra_arguments=[], **kw):
25+
def make_ipkernel_cmd(mod='ipykernel', executable=None, extra_arguments=None, **kw):
2626
"""Build Popen command list for launching an IPython kernel.
2727
2828
Parameters
@@ -43,6 +43,7 @@ def make_ipkernel_cmd(mod='ipykernel', executable=None, extra_arguments=[], **kw
4343
"""
4444
if executable is None:
4545
executable = sys.executable
46+
extra_arguments = extra_arguments or []
4647
arguments = [ executable, '-m', mod, '-f', '{connection_file}' ]
4748
arguments.extend(extra_arguments)
4849

0 commit comments

Comments
 (0)