Use Python 3 exception syntax

Bug #1039265 reported by Brian Curtin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntuone-dev-tools
Status tracked in Trunk
Stable-4-0
Fix Released
Undecided
Unassigned
Trunk
Fix Released
Undecided
Brian Curtin
ubuntuone-dev-tools (Ubuntu)
Fix Released
Undecided
Unassigned
Quantal
Fix Released
Undecided
Unassigned

Bug Description

Python 3 changed the exception syntax so we need to change a use of "Exception, value" to "Exception as value"

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntuone-dev-tools - 3.99.90-0ubuntu1

---------------
ubuntuone-dev-tools (3.99.90-0ubuntu1) quantal; urgency=low

  * New upstream release.
    - Coerce map usage into lists for both Python versions. (LP: #1042384)
    - Enable the tests to be manually run against Python 3. (LP: #1042436)
    - Enable unicode_literals for text/bytes distinction. (LP: #1039741)
    - Prepare u1lint for Python 3 usage. (LP: #1040144)
    - Convert unicode usage to use the compatibility layer. (LP: #1039765)
    - Update octal literal use for Python 3. (LP: #1039749)
    - Import StringIO from the io module for compatibility. (LP: #1039262)
    - Use items instead of iteritems for Python 3. (LP: #1039267)
    - Adjust exception handling to work on Python 3. (LP: #1039265)
    - Change to Python 3's print function syntax. (LP: #1039238)
    - Move long usage to int. (LP: #1039251)
    - Fix urllib imports to work on both Python versions. (LP: #1039255)
    - Add a small module for Unicode/bytes distinction. (LP: #1039225)
    - Replace xrange usage with range. (LP: #1039243)
 -- Rodney Dawes <email address hidden> Wed, 29 Aug 2012 09:46:24 -0400

Changed in ubuntuone-dev-tools (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.