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

Bug #1596131 reported by jingtao liang on 2016-06-25
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Undecided
Unassigned

Bug Description

use py3 run the test:

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

SyntaxError: invalid syntax

Changed in nova:
assignee: nobody → jingtao liang (liang-jingtao)
description: updated

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

Changed in nova:
status: New → In Progress
tags: added: python3

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.

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
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  Edit
Everyone can see this information.

Other bug subscribers