remove support for missing PermissionError on py 3.2

This commit is contained in:
Thomas Waldmann 2015-12-14 22:15:32 +01:00
parent dabac6a4ed
commit 19998888ba
2 changed files with 0 additions and 12 deletions

View File

@ -43,12 +43,6 @@ has_mtime_ns = sys.version >= '3.3'
has_lchmod = hasattr(os, 'lchmod')
has_lchflags = hasattr(os, 'lchflags')
# Python <= 3.2 raises OSError instead of PermissionError (See #164)
try:
PermissionError = PermissionError
except NameError:
PermissionError = OSError
class DownloadPipeline:

View File

@ -36,12 +36,6 @@ has_lchflags = hasattr(os, 'lchflags')
src_dir = os.path.join(os.getcwd(), os.path.dirname(__file__), '..')
# Python <= 3.2 raises OSError instead of PermissionError (See #164)
try:
PermissionError = PermissionError
except NameError:
PermissionError = OSError
def exec_cmd(*args, archiver=None, fork=False, exe=None, **kw):
if fork: