[py3] bug.lp_save() crashes with TypeError: startswith first arg must be bytes or a tuple of bytes, not str
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient (Ubuntu) |
Fix Released
|
Undecided
|
Dimitri John Ledkov |
Bug Description
While porting Apport to python3-
$ python3 /tmp/test.py
Traceback (most recent call last):
File "/tmp/test.py", line 10, in <module>
bug.lp_save()
File "/usr/lib/
URI(
File "/usr/lib/
cached_etag = self._connectio
File "/usr/lib/
return self.cache.
File "/usr/lib/
if line.startswith
TypeError: startswith first arg must be bytes or a tuple of bytes, not str
When I call the same with python 2, it works fine. Note that this is a write operation, so this needs to use login_with() and credentials. So you might want to change the credentials_file= argument in the reproducer or drop it completely (then you'll have to log in every time you run the reproducer).
Changed in lazr.restfulclient (Ubuntu): | |
assignee: | nobody → Dimitri John Ledkov (xnox) |
Changed in lazr.restfulclient (Ubuntu): | |
status: | New → In Progress |
Changed in lazr.restfulclient (Ubuntu): | |
status: | In Progress → Fix Committed |
This bug was fixed in the package lazr.restfulclient - 0.13.4-4
---------------
lazr.restfulclient (0.13.4-4) experimental; urgency=medium
* Decode headers before comparison (LP: #1414075)
* Fix urllib unquote imports (LP: #1414055)
-- Dimitri John Ledkov <email address hidden> Thu, 12 Feb 2015 23:40:09 +0000