Mercurial > kallithea
view MANIFEST.in @ 3625:260a7a01b054 beta
follow Python conventions for boolean values
True and False might be singletons and the "default" values for "boolean"
expressions, but "all" values in Python has a boolean value and should be
evaluated as such. Checking with 'is True' and 'is False' is thus confusing,
error prone and unnessarily complex.
If we anywhere rely and nullable boolean fields from the database layer and
don't want the null value to be treated as False then we should check
explicitly for null with 'is None'.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Thu, 28 Mar 2013 01:10:45 +0100 |
parents | 3d984e05d0cd |
children | bf263968da47 |
line wrap: on
line source
include rhodecode/config/deployment.ini_tmpl include rhodecode/lib/dbmigrate/migrate.cfg include README.rst recursive-include rhodecode/i18n * #docs recursive-include docs * #init.d recursive-include init.d * #images recursive-include rhodecode/public/css * recursive-include rhodecode/public/images * #js recursive-include rhodecode/public/js * #templates recursive-include rhodecode/templates *