From 03a27654e08a133c2b74fddd3b8623c30e31c153 Mon Sep 17 00:00:00 2001 From: Rayyan Ansari Date: Sat, 11 Feb 2023 16:32:19 +0000 Subject: [PATCH] parseformat: remove Windows-specific hack This fixes the rest of the tests. --- src/borg/helpers/parseformat.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/borg/helpers/parseformat.py b/src/borg/helpers/parseformat.py index 121d98780..7d469ad4d 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -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")