From 19998888ba14d48850ec3a7665da578c8f3f7451 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Mon, 14 Dec 2015 22:15:32 +0100 Subject: [PATCH] remove support for missing PermissionError on py 3.2 --- borg/archive.py | 6 ------ borg/testsuite/archiver.py | 6 ------ 2 files changed, 12 deletions(-) diff --git a/borg/archive.py b/borg/archive.py index f5a3d2964..e8fe2feda 100644 --- a/borg/archive.py +++ b/borg/archive.py @@ -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: diff --git a/borg/testsuite/archiver.py b/borg/testsuite/archiver.py index 74e41152d..2b27a516c 100644 --- a/borg/testsuite/archiver.py +++ b/borg/testsuite/archiver.py @@ -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: