Use 'is None' and 'is not None'

This commit is contained in:
Ned Batchelder
2013-03-01 17:34:05 -05:00
parent 97f1e04282
commit 7c8a90229e
11 changed files with 16 additions and 16 deletions

View File

@@ -1,7 +1,7 @@
<%namespace name='static' file='static_content.html'/>
<h2 class="problem-header">
${ problem['name'] }
% if problem['weight'] != 1 and problem['weight'] != None:
% if problem['weight'] != 1 and problem['weight'] is not None:
: ${ problem['weight'] } points
% endif
</h2>
@@ -30,4 +30,4 @@
</section>
% endif
</section>
</section>
</section>