We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a76ad01 commit 6978e8fCopy full SHA for 6978e8f
src/cbapi/response/models.py
@@ -2320,14 +2320,11 @@ def crossprocs(self):
2320
2321
@property
2322
def parents(self):
2323
- try:
2324
- parent_proc = self.parent
2325
- while (parent_proc and parent_proc.id and parent_proc.process_md5):
2326
- yield parent_proc
2327
- parent_proc = parent_proc.parent
2328
- except:
2329
- return
2330
+ #use walk parents to enforce consistency
+ parents = []
+ self.walk_parents(lambda parent, depth: parents.append(parent))
+ for parent in parents:
+ yield parent
2331
2332
2333
def children(self):
0 commit comments