@@ -4502,7 +4502,7 @@ def do_py(self, _: argparse.Namespace) -> Optional[bool]:
4502
4502
4503
4503
:return: True if running of commands should stop.
4504
4504
"""
4505
- # self.last_resort will be set by _run_python()
4505
+ # self.last_result will be set by _run_python()
4506
4506
return self ._run_python ()
4507
4507
4508
4508
run_pyscript_parser = argparse_custom .DEFAULT_ARGUMENT_PARSER (description = "Run a Python script file inside the console" )
@@ -4537,7 +4537,7 @@ def do_run_pyscript(self, args: argparse.Namespace) -> Optional[bool]:
4537
4537
# Overwrite sys.argv to allow the script to take command line arguments
4538
4538
sys .argv = [args .script_path , * args .script_arguments ]
4539
4539
4540
- # self.last_resort will be set by _run_python()
4540
+ # self.last_result will be set by _run_python()
4541
4541
py_return = self ._run_python (pyscript = args .script_path )
4542
4542
finally :
4543
4543
# Restore command line arguments to original state
@@ -4730,7 +4730,7 @@ def do_history(self, args: argparse.Namespace) -> Optional[bool]:
4730
4730
try :
4731
4731
self .run_editor (fname )
4732
4732
4733
- # self.last_resort will be set by do_run_script()
4733
+ # self.last_result will be set by do_run_script()
4734
4734
return self .do_run_script (utils .quote_string (fname ))
4735
4735
finally :
4736
4736
os .remove (fname )
@@ -5093,7 +5093,7 @@ def do_run_script(self, args: argparse.Namespace) -> Optional[bool]:
5093
5093
self ._script_dir .append (os .path .dirname (expanded_path ))
5094
5094
5095
5095
if args .transcript :
5096
- # self.last_resort will be set by _generate_transcript()
5096
+ # self.last_result will be set by _generate_transcript()
5097
5097
self ._generate_transcript (
5098
5098
script_commands ,
5099
5099
os .path .expanduser (args .transcript ),
0 commit comments