Update print statements to use the new function syntax.
Review Request #4904 — Created Nov. 5, 2013 and submitted — Latest diff uploaded
Update print statements to use the new function syntax.
In python 3, print is a function rather than a statement. This is
helpfully included in python 2.6+ with a__future__
import.Several of our print statements existed inside management commands. The
proper way to output inside of a command is withself.stdout.write
(or
self.stderr.write
), so I've updated all of those.
Ran unit tests.
Diff Revision 1 (Latest)
reviewboard/admin/management/sites.py |
---|
reviewboard/admin/management/commands/dumpdb.py |
---|
reviewboard/admin/management/commands/loaddb.py |
---|
reviewboard/admin/management/commands/resolve-check.py |
---|
reviewboard/cmdline/rbsite.py |
---|
reviewboard/diffviewer/tests.py |
---|
reviewboard/hostingsvcs/tests.py |
---|
reviewboard/reviews/tests.py |
---|
reviewboard/reviews/management/commands/fill-database.py |
---|
reviewboard/reviews/management/commands/index.py |
---|
reviewboard/scmtools/management/commands/registerscmtools.py |
---|
reviewboard/webapi/tests/base.py |
---|