# one would hope so we can't just assert.
if id(class_) in state.crawled:
for name, previous_entry in state.name_map.items():
- if previous_entry.object == class_: break
- else: assert False
+ if id(previous_entry.object) == id(class_): break
+ else: assert False, "%s marked as crawled but can't find it" % '.'.join(path)
logging.error("Class %s previously found in %s, only one occurence will be chosen. Ensure each class is exposed only in a single module for generating correct documentation.", '.'.join(path), '.'.join(previous_entry.path))
state.name_map['.'.join(path)] = previous_entry
return