1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-25 09:19:31 +00:00

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_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 @@
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: