Skip to content

Commit

Permalink
Fix typo in mindepth support
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpm committed Mar 9, 2007
1 parent ae206f5 commit 8391287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zc/relationship/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def minDepthFilter(depth):
return None
if not isinstance(depth, (int, long)) or depth < 1:
raise ValueError('invalid minDepth', depth)
return lambda relchain, query, index, cache: len(relchain) >= minDepth
return lambda relchain, query, index, cache: len(relchain) >= depth

class AbstractContainer(persistent.Persistent):
def __init__(self,
Expand Down

0 comments on commit 8391287

Please sign in to comment.