Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdf476a commit 9bdce08Copy full SHA for 9bdce08
1 file changed
pre_commit/languages/python.py
@@ -104,11 +104,11 @@ def _sys_executable_matches(version):
104
105
106
def norm_version(version):
107
- if os.name == 'nt': # pragma: no cover (windows)
108
- # first see if our current executable is appropriate
109
- if _sys_executable_matches(version):
110
- return sys.executable
+ # first see if our current executable is appropriate
+ if _sys_executable_matches(version):
+ return sys.executable
111
+ if os.name == 'nt': # pragma: no cover (windows)
112
version_exec = _find_by_py_launcher(version)
113
if version_exec:
114
return version_exec
0 commit comments