diff options
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r-- | giscanner/ast.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py index 14cd1a60..ff65312c 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -150,6 +150,9 @@ class Node(object): self.deprecated_version = None self.version = None + def __cmp__(self, other): + return cmp(self.name, other.name) + def __repr__(self): return '%s(%r)' % (self.__class__.__name__, self.name) |