par2+webdav raises TypeError on Python 3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Duplicity: 0.8.05
Python: 3.7.4
OS: macOS 10.15 (Catalina)
Backtrace of previous error: Traceback (innermost last):
File "/Users/
return fn(self, *args)
File "/Users/
return [tobytes(x) for x in self.backend.
File "/Users/
if c.match(filename):
TypeError: cannot use a bytes pattern on a string-like object
Attempt 1 failed. TypeError: cannot use a bytes pattern on a string-like object
If I change the code with the following patch it works my case, but I am unsure if `list` should give back strings or bytes.
diff --git a/duplicity/
index 1b41274..4376195 100644
--- a/duplicity/
+++ b/duplicity/
@@ -131,7 +131,7 @@ class Par2Backend(
if returncode:
- par2volumes = list(filter(
+ par2volumes = list(filter(
@@ -192,7 +192,7 @@ class Par2Backend(
"""
- c = re.compile(
+ c = re.compile(
for filename in remote_list:
if c.match(filename):
description: | updated |
summary: |
- par2+webdav throws TypeError on Python 3 + par2+webdav raises TypeError on Python 3 |
Changed in duplicity: | |
importance: | Undecided → Medium |
milestone: | none → 0.8.06 |
status: | New → Fix Committed |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |