Update for new exception syntax.
Review Request #4875 — 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.
Ran unit tests.
Diff Revision 1 (Latest)
djblets/extensions/extension.py |
---|
djblets/extensions/manager.py |
---|
djblets/extensions/resources.py |
---|
djblets/feedview/views.py |
---|
djblets/pipeline/compilers/bless.py |
---|
djblets/testing/testcases.py |
---|
djblets/util/cache.py |
---|
djblets/util/contextmanagers.py |
---|
djblets/util/fields.py |
---|
djblets/util/misc.py |
---|
djblets/util/templatetags/djblets_images.py |
---|