mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
PermissionError is new in Py33
This commit is contained in:
parent
72812c52ff
commit
ca88095579
|
@ -9,13 +9,20 @@ __all__ = ['WindowsError']
|
|||
|
||||
uses_pycache = hasattr(imp, 'cache_from_source')
|
||||
|
||||
|
||||
class NeverUsedException(Exception):
|
||||
"""this exception should never be raised"""
|
||||
|
||||
try:
|
||||
WindowsError = WindowsError
|
||||
except NameError:
|
||||
class NeverUsedException(Exception):
|
||||
"""this exception should never be raised"""
|
||||
WindowsError = NeverUsedException
|
||||
|
||||
try:
|
||||
#new in Python 3.3
|
||||
PermissionError = PermissionError
|
||||
except NameError:
|
||||
PermissionError = NeverUsedException
|
||||
|
||||
console_encoding = sys.__stdout__.encoding
|
||||
|
||||
|
|
Loading…
Reference in a new issue