Therefore I would keep the "empty title" check but broaden it to
something like "if title is empty and send_mail flag is set (or issue is
new)". Otherwise when the title is empty we send mails with " (issue
123)" as subject.
http://codereview.appspot.com/5577063/diff/1/upload.py
File upload.py (right):
http://codereview.appspot.com/5577063/diff/1/upload.py#newcode2251
upload.py:2251: title = title or ' '
What about parenthesis?
title = (title or message...
or raw_input...
or ' ')
That'd reduce it to a single assignment.
On 2012/01/27 19:46:01, M-A wrote:
> It's a more redundant written this way but a bit more readable. I'm
open to
> other format.