Deprecated use of raising error with tuple
Bug #729726 reported by
Jay Pipes
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/
raise exc_type, exc_value, exc_traceback
When raising an exception, use "raise ValueError(
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.
Related branches
lp:~jaypipes/glance/bug730213
- Jay Pipes (community): Approve
- Rick Harris (community): Approve
- Ed Leafe (community): Approve
- Sandy Walsh (community): Approve
- Cory Wright: Pending requested
-
Diff: 631 lines (+511/-32)7 files modifiedglance/registry/db/migrate_repo/versions/003_add_disk_format.py (+147/-0)
glance/registry/db/migrate_repo/versions/003_sqlite_downgrade.sql (+58/-0)
glance/registry/db/migrate_repo/versions/003_sqlite_upgrade.sql (+64/-0)
glance/registry/db/migration.py (+5/-5)
glance/server.py (+2/-2)
tests/unit/test_migrations.conf (+5/-0)
tests/unit/test_migrations.py (+230/-25)
Changed in glance: | |
milestone: | cactus-2011-03-14 → none |
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 |
Changed in glance: | |
milestone: | cactus-2011-03-24 → 2011.2 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.