Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/giscanner/ast.py
diff options
context:
space:
mode:
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 14cd1a6..ff65312 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)