Organize urllib imports to work on Python 2 and 3
Bug #1018587 reported by
Brian Curtin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu Single Sign On Client | Status tracked in Trunk | |||||
Stable-4-0 |
Fix Released
|
Undecided
|
Unassigned | |||
Trunk |
Fix Released
|
Undecided
|
Brian Curtin | |||
ubuntu-sso-client (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | |||
Quantal |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
As shown at [1], urllib went through a reorganization in Python 3, so we need to shape our importing of urllib and urllib2 names to work on both versions.
[1] http://
Related branches
lp:~brian.curtin/ubuntu-sso-client/py3-urllib
- dobey (community): Approve
- Alejandro J. Cura (community): Approve
-
Diff: 339 lines (+82/-34)9 files modifiedubuntu_sso/keyring/__init__.py (+9/-3)
ubuntu_sso/keyring/linux.py (+10/-5)
ubuntu_sso/tests/test_account.py (+2/-2)
ubuntu_sso/utils/__init__.py (+11/-4)
ubuntu_sso/utils/webclient/common.py (+7/-1)
ubuntu_sso/utils/webclient/restful.py (+8/-2)
ubuntu_sso/utils/webclient/tests/test_restful.py (+11/-5)
ubuntu_sso/utils/webclient/tests/test_webclient.py (+14/-8)
ubuntu_sso/utils/webclient/txweb.py (+10/-4)
To post a comment you must log in.
This bug was fixed in the package ubuntu-sso-client - 3.99.2-0ubuntu1
---------------
ubuntu-sso-client (3.99.2-0ubuntu1) quantal; urgency=low
* New upstream release. ubuntu- sso-client- gtk.install:
- Avoid using /usr/bin/env python in scripts. (LP: #984089)
- Avoid using xrange, which is not in Python 3. (LP: #1016774)
- Handle winreg vs. _winreg for Python 2 and 3. (LP: #1016957)
- Remove the GTK+ UI. (LP: #1017690)
- Handle urllib differences between Python 2 and 3. (LP: #1018587)
- Use io.StringIO everywhere, for Python 2 and 3. (LP: #1018599)
- Use new print syntax for Python 3. (LP: #1018611)
* debian/control:
- Remove the -gtk UI package, and update the deps.
* debian/
- Removed.
-- Rodney Dawes <email address hidden> Fri, 20 Jul 2012 12:49:23 -0400