mirror of https://github.com/pypa/pip
Replace six.next() with builtin next()
The builtin has been available since Python 2.6. Makes the code slightly more forward compatible by removing an unnecessary use of six.
This commit is contained in:
parent
c286c55d51
commit
5779f55bd4
|
@ -15,7 +15,6 @@ import locale
|
|||
import logging
|
||||
import os
|
||||
|
||||
from pip._vendor import six
|
||||
from pip._vendor.six.moves import configparser
|
||||
|
||||
from pip._internal.exceptions import (
|
||||
|
@ -188,7 +187,7 @@ class Configuration(object):
|
|||
# name removed from parser, section may now be empty
|
||||
section_iter = iter(parser.items(section))
|
||||
try:
|
||||
val = six.next(section_iter)
|
||||
val = next(section_iter)
|
||||
except StopIteration:
|
||||
val = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue