| OLD | NEW |
| 1 # Copyright 1999-2009 Gentoo Foundation | 1 # Copyright 1999-2009 Gentoo Foundation |
| 2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
| 3 | 3 |
| 4 from _emerge.DepPriority import DepPriority | 4 from _emerge.DepPriority import DepPriority |
| 5 from _emerge.SlotObject import SlotObject | 5 from _emerge.SlotObject import SlotObject |
| 6 class Dependency(SlotObject): | 6 class Dependency(SlotObject): |
| 7 __slots__ = ("atom", "blocker", "child", "depth", | 7 __slots__ = ("atom", "blocker", "child", "depth", |
| 8 » » "parent", "onlydeps", "priority", "root") | 8 » » "parent", "onlydeps", "priority", "root", |
| 9 » » "collapsed_parent", "collapsed_priority") |
| 9 def __init__(self, **kwargs): | 10 def __init__(self, **kwargs): |
| 10 SlotObject.__init__(self, **kwargs) | 11 SlotObject.__init__(self, **kwargs) |
| 11 if self.priority is None: | 12 if self.priority is None: |
| 12 self.priority = DepPriority() | 13 self.priority = DepPriority() |
| 13 if self.depth is None: | 14 if self.depth is None: |
| 14 self.depth = 0 | 15 self.depth = 0 |
| 16 if self.collapsed_parent is None: |
| 17 self.collapsed_parent = self.parent |
| 18 if self.collapsed_priority is None: |
| 19 self.collapsed_priority = self.priority |
| 15 | 20 |
| OLD | NEW |