Exceptions don't work in Python 3
Bug #1016711 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
In order to support Python 3, we need to move to the "except Exception as e" syntax, introduced in Python 3 and backported to Python 2.6.
Related branches
lp:~brian.curtin/ubuntu-sso-client/py3-exceptions
- dobey (community): Approve
- Roberto Alsina (community): Approve
-
Diff: 216 lines (+19/-19)14 files modifiedubuntu_sso/account.py (+2/-2)
ubuntu_sso/networkstate/darwin.py (+1/-1)
ubuntu_sso/networkstate/linux.py (+2/-2)
ubuntu_sso/networkstate/windows.py (+1/-1)
ubuntu_sso/qt/proxy_dialog.py (+1/-1)
ubuntu_sso/utils/__init__.py (+1/-1)
ubuntu_sso/utils/runner/glib.py (+1/-1)
ubuntu_sso/utils/runner/tests/test_glib.py (+1/-1)
ubuntu_sso/utils/runner/tests/test_qt.py (+2/-2)
ubuntu_sso/utils/runner/tx.py (+2/-2)
ubuntu_sso/utils/txsecrets.py (+1/-1)
ubuntu_sso/utils/webclient/common.py (+2/-2)
ubuntu_sso/utils/webclient/qtnetwork.py (+1/-1)
ubuntu_sso/utils/webclient/timestamp.py (+1/-1)
Changed in ubuntu-sso-client: | |
assignee: | nobody → Brian Curtin (brian.curtin) |
affects: | ubuntu → ubuntu-sso-client (Ubuntu) |
summary: |
- Convert exception syntax to Python 3 equivalent + Exceptions don't work in Python 3 |
Changed in ubuntu-sso-client (Ubuntu Quantal): | |
status: | New → Triaged |
To post a comment you must log in.
This bug was fixed in the package ubuntu-sso-client - 3.99.1-0ubuntu1
---------------
ubuntu-sso-client (3.99.1-0ubuntu1) quantal-proposed; urgency=low
* New upstream release. itervalues calls. (LP: #1016707)
- Handle type annotation when printed from gsettings. (LP: #1007109)
- Remove back buttons in sign in/up pages. (LP: #1009107)
- Disable tests broken by GTK+ 3.5 behavior change. (LP: #1014772)
- Remove code duplication with dirspec. (LP: #1016151)
- Stop using deprecated dict iteritems/
- Stop using deprecated exception handling method. (LP: #1016711)
* debian/control:
- Update dependencies.
* debian/*.install:
- Remove modules that duplicated code with dirspec.
* debian/patches:
- Remove upstreamed patches.
-- Rodney Dawes <email address hidden> Wed, 27 Jun 2012 15:10:41 -0400