don't throw exception when publishing review under mod_wsgi

Review Request #697 — Created Jan. 14, 2009 and submitted — Latest diff uploaded


Review Board SVN (deprecated)


This simple patch removes what I assume is a forgotten debugging print statement. By default, mod_wsgi disables sys.stdout and "print" throws:

File "//usr/lib64/python2.5/site-packages/django/core/handlers/" in get_response
  86.                 response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib64/python2.5/site-packages/django/views/decorators/" in _wrapped_view_func
  44.         response = view_func(request, *args, **kwargs)
File "/srv/reviewboard/py/djblets/webapi/" in _checklogin
  32.             response = view_func(request, *args, **kwargs)
File "/usr/lib64/python2.5/site-packages/django/views/decorators/" in inner
  31.             return func(request, *args, **kwargs)
File "/srv/reviewboard/py/reviewboard/webapi/" in review_draft_save
  887.     print "Ship it: %s (%s)" % (review.ship_it, type(review.ship_it))

Exception Type: IOError at /api/json/reviewrequests/56/reviews/draft/publish/
Exception Value: sys.stdout access restricted by mod_wsgi