Skip to content

Commit

Permalink
Did someone ask why I dislike Python 2?
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Oct 7, 2019
1 parent 5b9a8c8 commit cb3bb1d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pip/_internal/utils/virtualenv.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

import logging
import os
import site
Expand Down Expand Up @@ -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


Expand Down

0 comments on commit cb3bb1d

Please sign in to comment.