1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Did someone ask why I dislike Python 2?

This commit is contained in:
Pradyun Gedam 2019-10-07 16:00:59 +05:30
parent 762ffd5b5e
commit fe9ae3ba75
No known key found for this signature in database
GPG key ID: DA17C4B29CB32E4B

View file

@ -1,3 +1,5 @@
from __future__ import absolute_import
import logging
import os
import site
@ -47,7 +49,7 @@ def _get_pyvenv_cfg_lines():
try:
with open(pyvenv_cfg_file) as f:
return f.read().splitlines() # avoids trailing newlines
except OSError:
except IOError:
return None