Show More
@@ -200,8 +200,12 b' class Node(object):' | |||
|
200 | 200 | """ |
|
201 | 201 | Comparator using name of the node, needed for quick list sorting. |
|
202 | 202 | """ |
|
203 | ||
|
203 | 204 | kind_cmp = cmp(self.kind, other.kind) |
|
204 | 205 | if kind_cmp: |
|
206 | if isinstance(self, SubModuleNode): | |
|
207 | # we make submodules equal to dirnode for "sorting" purposes | |
|
208 | return NodeKind.DIR | |
|
205 | 209 | return kind_cmp |
|
206 | 210 | return cmp(self.name, other.name) |
|
207 | 211 |
General Comments 0
You need to be logged in to leave comments.
Login now