Update for new exception syntax.
Review Request #4876 — Created Nov. 1, 2013 and submitted — Latest diff uploaded
Update for new exception syntax.
Python 2.6+ introduced a new syntax for catching exceptions with the exception
value. Instead of "except Exception, e
", it's now "except Exception as e
",
which is really much nicer. Since we're 2.6+ only now, we can convert to this.Testing done: Ran unit tests.
Ran unit tests.
Diff Revision 1 (Latest)
reviewboard/manage.py |
---|
reviewboard/settings.py |
---|
reviewboard/accounts/backends.py |
---|
reviewboard/accounts/forms.py |
---|
reviewboard/admin/checks.py |
---|
reviewboard/admin/forms.py |
---|
reviewboard/admin/views.py |
---|
reviewboard/admin/management/commands/loaddb.py |
---|
reviewboard/attachments/mimetypes.py |
---|
reviewboard/cmdline/rbsite.py |
---|
reviewboard/cmdline/rbssh.py |
---|
reviewboard/diffviewer/views.py |
---|
reviewboard/hostingsvcs/beanstalk.py |
---|
reviewboard/hostingsvcs/bitbucket.py |
---|
reviewboard/hostingsvcs/github.py |
---|
reviewboard/hostingsvcs/service.py |
---|
reviewboard/hostingsvcs/tests.py |
---|
reviewboard/notifications/email.py |
---|
reviewboard/reviews/forms.py |
---|
reviewboard/reviews/views.py |
---|