mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04: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_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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue