Skip to content

Commit

Permalink
IPython console: Fix spelling of benign in several places
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Jan 8, 2022
1 parent 162e699 commit c21d460
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spyder/plugins/ipythonconsole/widgets/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,9 @@ def _abort_kernel_restart(self):
stderr = self.stderr_obj.get_contents()
if not stderr:
return False
# There is an error. If it is bening, ignore.
# There is an error. If it is benign, ignore.
for line in stderr.splitlines():
if line and not self.is_bening_error(line):
if line and not self.is_benign_error(line):
return True
return False

Expand Down Expand Up @@ -394,7 +394,7 @@ def poll_std_file_change(self):
stderr = self.stderr_obj.poll_file_change()
starting = self.shellwidget._starting
if stderr:
if self.is_bening_error(stderr):
if self.is_benign_error(stderr):
return
if self.shellwidget.isHidden():
# Avoid printing the same thing again
Expand Down Expand Up @@ -497,7 +497,7 @@ def show_kernel_error(self, error):
"""Show kernel initialization errors in infowidget."""
self.error_text = error

if self.is_bening_error(error):
if self.is_benign_error(error):
return

InstallerIPythonKernelError(error)
Expand Down Expand Up @@ -527,9 +527,9 @@ def show_kernel_error(self, error):
# Tell the client we're in error mode
self.is_error_shown = True

def is_bening_error(self, error):
def is_benign_error(self, error):
"""Decide if an error is benign in order to filter it."""
bening_errors = [
benign_errors = [
# See spyder-ide/spyder#16828
"This version of python seems to be incorrectly compiled",
"internal generated filenames are not absolute",
Expand All @@ -542,7 +542,7 @@ def is_bening_error(self, error):
"No such comm"
]

return any([err in error for err in bening_errors])
return any([err in error for err in benign_errors])

def get_name(self):
"""Return client name"""
Expand Down

0 comments on commit c21d460

Please sign in to comment.