Deprecated use of raising error with tuple

Bug #729726 reported by Jay Pipes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Jay Pipes

Bug Description

r79 introduced a warning from pep8:

glance/server.py:321:27: W602 deprecated form of raising exception
            raise exc_type, exc_value, exc_traceback
                          ^
    When raising an exception, use "raise ValueError('message')"
    instead of the older form "raise ValueError, 'message'".

    The paren-using form is preferred because when the exception arguments
    are long or include string formatting, you don't need to use line
    continuation characters thanks to the containing parentheses. The older
    form will be removed in Python 3000.

Tags: pep8

Related branches

Jay Pipes (jaypipes)
Changed in glance:
milestone: cactus-2011-03-14 → none
Jay Pipes (jaypipes)
Changed in glance:
assignee: Rick Harris (rconradharris) → Jay Pipes (jaypipes)
milestone: none → cactus-2011-03-24
status: Confirmed → In Progress
Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: cactus-2011-03-24 → 2011.2
status: Fix Committed → 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.