1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-25 15:33:39 +00:00

Merge pull request #7344 from RayyanAnsari/parseformat-rm-hack

parseformat: remove Windows-specific hack
This commit is contained in:
TW 2023-02-11 18:23:47 +01:00 committed by GitHub
commit 6db21fa330
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -472,16 +472,6 @@ def normpath_special(p):
p = os.path.normpath(p)
return ("/." + p) if relative else p
if is_win32:
m = self.win_file_re.match(text)
if m:
self.proto = "file"
self.path = m.group("path")
return True
# On windows we currently only support windows paths.
return False
m = self.ssh_re.match(text)
if m:
self.proto = m.group("proto")