Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 09b802e

Browse files
authored
Remove duplicate error in messages (#4924)
1 parent 12b3982 commit 09b802e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def _python_version_from_executable(python_executable: str) -> Tuple[int, int]:
242242
return ast.literal_eval(check)
243243
except (subprocess.CalledProcessError, FileNotFoundError):
244244
raise PythonExecutableInferenceError(
245-
'Error: invalid Python executable {}'.format(python_executable))
245+
'invalid Python executable {}'.format(python_executable))
246246

247247

248248
def _python_executable_from_version(python_version: Tuple[int, int]) -> str:
@@ -256,7 +256,7 @@ def _python_executable_from_version(python_version: Tuple[int, int]) -> str:
256256
return sys_exe
257257
except (subprocess.CalledProcessError, FileNotFoundError):
258258
raise PythonExecutableInferenceError(
259-
'Error: failed to find a Python executable matching version {},'
259+
'failed to find a Python executable matching version {},'
260260
' perhaps try --python-executable, or --no-site-packages?'.format(python_version))
261261

262262

0 commit comments

Comments
 (0)