Skip to content

Commit

Permalink
Use _marker instead of None as fallback value
Browse files Browse the repository at this point in the history
svn path=/Products.ExtendedPathIndex/trunk/; revision=40265
  • Loading branch information
hannosch committed Sep 26, 2010
1 parent 74d3800 commit 795a6cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/ExtendedPathIndex/ExtendedPathIndex.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ def index_object(self, docid, obj, threshold=100):
def unindex_object(self, docid):
""" hook for (Z)Catalog """

old_value = self._unindex.get(docid, None)
if old_value is None:
old_value = self._unindex.get(docid, _marker)
if old_value is _marker:
logger.log(logging.INFO,
'Attempt to unindex nonexistent object with id '
'%s' % docid)
Expand Down

0 comments on commit 795a6cc

Please sign in to comment.