Skip to content

Commit c085703

Browse files
committed
Remove Python 2 code
1 parent d4f37ae commit c085703

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pioinstaller/python.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,7 @@ def find_compatible_pythons(
186186
continue
187187
candidates.append(os.path.join(path, exe))
188188
if sys.executable not in candidates:
189-
if sys.version_info >= (3,):
190-
candidates.insert(0, sys.executable)
191-
else:
192-
candidates.append(sys.executable)
189+
candidates.insert(0, sys.executable)
193190
result = []
194191
for item in candidates:
195192
if item in ignore_list:

0 commit comments

Comments
 (0)