[issue5800] make wsgiref.headers.Headers accept empty constructor

R. David Murray report at bugs.python.org
Tue Jul 1 16:18:22 CEST 2014


R. David Murray added the comment:

Since we don't need to avoid new language features, using the ternary would be better than using the or.  This is exactly the sort of situation the ternary was introduced for: making sure the input really is None before applying the default.

Otherwise the patch looks good.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5800>
_______________________________________


More information about the Python-bugs-list mailing list