Skip to content
Browse files

Use _marker instead of None as fallback value

svn path=/Products.ExtendedPathIndex/trunk/; revision=40265
  • Loading branch information...
1 parent 74d3800 commit 795a6cca80944ae9bc8cef591deb56e64ca5aae4 @hannosch hannosch committed Sep 26, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 Products/ExtendedPathIndex/ExtendedPathIndex.py
View
4 Products/ExtendedPathIndex/ExtendedPathIndex.py
@@ -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)

0 comments on commit 795a6cc

Please sign in to comment.
Something went wrong with that request. Please try again.