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:
Jon Dufresne 2019-02-17 09:48:14 -08:00 committed by Xavier Fernandez
parent c286c55d51
commit 5779f55bd4
2 changed files with 1 additions and 2 deletions

View File

@ -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