Skip to content
Snippets Groups Projects
Commit f8b46245 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

py3: make 'None in lazyancestors' not crash

This looks somewhat weird, but we have callers like 'torev(n) in futurecommon'
around where torev(n) is dictlike.get(n). I could fix callers, but that would
be unnecessarily verbose.
parent b263133e
Branches
Tags
No related merge requests found
......@@ -339,6 +339,10 @@
seen = self._containsseen
if target in seen:
return True
# Only integer target is valid, but some callers expect 'None in self'
# to be False. So we explicitly allow it.
if target is None:
return False
parentrevs = self._parentrevs
visit = self._containsvisit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment