python-pisa calls PIL tostring instead of tobytes in xenial
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pisa (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Versions:
python-pil:amd64 3.1.2-0ubuntu1
python-pisa 3.0.32-3
Exception:
File "...", line 172, in to_pdf
context = CreatePDF(
File "/usr/lib/
doc.
...
File "/usr/lib/
raw = im.getRGBData()
File "/usr/lib/
self._data = im.tostring()
File "/usr/lib/
"Please call tobytes() instead.")
Exception: tostring() has been removed. Please call tobytes() instead.
Fix:
- replace the tostring call with tobytes
See the attached patch.
Cheers,
Walter Doekes
OSSO B.V.
The attachment "0005-tostring- 2-tobytes. patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]