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

@@ -524,7 +524,7 @@ class PeerGradingModule(XModule):
'''
Show individual problem interface
'''
if get == None or get.get('location') == None:
if get is None or get.get('location') is None:
if not self.use_for_single_location:
#This is an error case, because it must be set to use a single location to be called without get parameters
#This is a dev_facing_error