File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 17
17
import sys
18
18
from collections import deque
19
19
20
- from pip ._vendor import pkg_resources , six
20
+ from pip ._vendor import pkg_resources
21
21
# NOTE: retrying is not annotated in typeshed as on 2017-07-17, which is
22
22
# why we ignore the type on this import.
23
23
from pip ._vendor .retrying import retry # type: ignore
@@ -545,13 +545,7 @@ def __init__(self, lines):
545
545
546
546
def readline (self ):
547
547
try :
548
- try :
549
- return next (self ._gen )
550
- except NameError :
551
- # flake8-bugbear B305 suggests using six.next for
552
- # Python 2 compatibility. This along with the try/except
553
- # block can be removed once we drop Python 2 support
554
- return six .next (self ._gen )
548
+ return next (self ._gen )
555
549
except StopIteration :
556
550
return ''
557
551
You can’t perform that action at this time.
0 commit comments