Skip to content

Commit

Permalink
This if-statement is more precise.
Browse files Browse the repository at this point in the history
  • Loading branch information
Egon Frerich committed Feb 21, 2006
1 parent 0030988 commit cc93cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browser/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def createAndAdd(self, data):
adapted = self.schema(content)
for name in self._set_after_add:
if name in data:
if data[name] <> None:
if data[name] is not None:
field = self.schema[name]
try:
field.set(adapted, data[name])
Expand Down

0 comments on commit cc93cf3

Please sign in to comment.