onedrive backend uses 'unicode' constructor from python2.7 and fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The onedrive backend uses the 'unicode' constructor from Python2.7. This leads to:
"NameError: name 'unicode' is not defined"
Duplicity version: 0.8.08
Python: Python 3.6.9 (default, Dec 8 2019, 01:17:00)
[GCC 4.2.1 Compatible FreeBSD Clang 6.0.1 (tags/RELEASE_
OS Distro and version: FreeBSD BSDServer 12.0-RELEASE-p10 FreeBSD 12.0-RELEASE-p10 GENERIC amd64
Type of target system: Onedrive
Error log:
Rückverfolgung des vorangegangenen Fehlers: Traceback (innermost last):
File "/usr/local/
return fn(self, *args)
File "/usr/local/
self.
File "/usr/local/
self.
File "/usr/local/
u'Content-
NameError: name 'unicode' is not defined
Changed in duplicity: | |
status: | New → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Kenneth Loafman (kenneth-loafman) |
milestone: | none → 0.8.09 |
Changed in duplicity: | |
status: | In Progress → Fix Committed |
assignee: | Kenneth Loafman (kenneth-loafman) → nobody |
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
A possible fix for this could be in onedrivebackend.py:
262c262 len(chunk) ),
< u'Content-Length': unicode(
---
> u'Content-Length': u'%d' % len(chunk),