getArchiveSubscriptionURL() crashes on python3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lazr.restfulclient |
Fix Released
|
High
|
Colin Watson | ||
lazr.restfulclient (Ubuntu) |
Fix Released
|
High
|
Colin Watson | ||
Xenial |
Fix Released
|
High
|
Andy Whitcroft |
Bug Description
[Impact]
When trying to use the me.getArchiveSu
Traceback (most recent call last):
File "./test.py", line 9, in <module>
print(
File "/usr/lib/
self.
File "/usr/lib/
super(Entry, self).lp_
File "/usr/lib/
representation, self.JSON_
File "/usr/lib/
representat
File "/usr/lib/
_make_
File "/usr/lib/
return _default_
File "/usr/lib/
obj, end = self.raw_decode(s)
File "/usr/lib/
return self.scan_once(s, idx=_w(s, idx).end())
simplejson.
The same code works fine on python2 (e.g. lp-shell). Because of this being broken, I'm unable to add some modification for ESM precise handling in our kernel review scripts as those are Python 3 based.
[Test Case]
# Make sure you have a private PPA to which a subscription for the user is made
from launchpadlib.
PPA_LINK = '' # API link to the PPA here
lp = Launchpad.
ppa = lp.load(PPA_LINK)
me = lp.load(
print(me.
[Regression Potential]
Seriously none.
Related branches
affects: | launchpadlib → lazr.restfulclient |
Changed in lazr.restfulclient: | |
assignee: | nobody → Colin Watson (cjwatson) |
importance: | Undecided → High |
status: | New → Fix Committed |
\o/ Thanks Colin!