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:
parent
762ffd5b5e
commit
fe9ae3ba75
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue