encoding argument for open isn't valid in Python 2.7

This commit is contained in:
Paul Moore 2018-04-07 11:19:34 +01:00
parent ddbbafaabb
commit cb5d4d2391
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ version = release = 'dev'
root = os.path.dirname(os.path.dirname(__file__))
pip_init = os.path.join(root, 'src', 'pip', '__init__.py')
with open(pip_init, encoding='utf-8') as f:
with open(pip_init) as f:
for line in f:
m = re.match(r'__version__ = "(.*)"', line)
if m: