File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
import logging
4
4
import os
5
5
import sys
6
- from collections import deque
7
6
from contextlib import suppress
8
7
from pathlib import Path
9
8
from typing import TYPE_CHECKING
23
22
24
23
25
24
class Builtin (Discover ):
26
- python_spec : Sequence [str ] | deque [ str ]
25
+ python_spec : Sequence [str ]
27
26
app_data : AppData
28
27
try_first_with : Sequence [str ]
29
28
30
29
def __init__ (self , options ) -> None :
31
30
super ().__init__ (options )
32
31
self .python_spec = options .python or [sys .executable ]
33
32
if self ._env .get ("VIRTUALENV_PYTHON" ):
34
- self .python_spec = deque (self .python_spec )
35
- self .python_spec .rotate (- 1 )
33
+ self .python_spec = self .python_spec [1 :] + self .python_spec [:1 ] # Rotate the list
36
34
self .app_data = options .app_data
37
35
self .try_first_with = options .try_first_with
38
36
You can’t perform that action at this time.
0 commit comments