mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
remove support for missing PermissionError on py 3.2
This commit is contained in:
parent
dabac6a4ed
commit
19998888ba
2 changed files with 0 additions and 12 deletions
|
@ -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:
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue