Py3 do not support "exception, e" ,we should correct it with "exception as e".

Bug #1596131 reported by jingtao liang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Won't Fix
Undecided
Unassigned

Bug Description

use py3 run the test:

try:
    a > 1
except Exception, e:
    print (e)

SyntaxError: invalid syntax

Tags: python3
Changed in nova:
assignee: nobody → jingtao liang (liang-jingtao)
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/334134

Changed in nova:
status: New → In Progress
tags: added: python3
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/334134
Reason: This patch has been sitting unchanged for more than 12 weeks. I am therefore going to abandon it to keep the nova review queue sane. Please feel free to restore the change if you're still working on it.

Revision history for this message
Sean Dague (sdague) wrote :

There are no currently open reviews on this bug, changing the status back to the previous state and unassigning. If there are active reviews related to this bug, please include links in comments.

Changed in nova:
status: In Progress → New
assignee: jingtao liang (liang-jingtao) → nobody
Revision history for this message
Sean Dague (sdague) wrote :

The only remaining instances of this are for tools designed for non python 3 envs

Changed in nova:
status: New → Won't Fix
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.