summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2020-03-16 21:38:29 -0400
committerJordan Wiens <jordan@psifertex.com>2020-03-16 21:38:29 -0400
commitb67f98d1e982b37ab80c32c019c5c221512e608e (patch)
tree8f17aa31dd571f7113b7f9483cfa72c50f329d8d /python/function.py
parent166a67bfa7f00549c7de23694edb22a9e776413f (diff)
add __lt__ to referencesource objects and raise exception if invalid type
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py
index e0d179b2..bdd04590 100644
--- a/python/function.py
+++ b/python/function.py
@@ -752,7 +752,7 @@ class Function(object):
def __lt__(self, value):
if not isinstance(value, Function):
- return False
+ raise TypeError("Can only compare to other Function objects")
return self.start < value.start
def __eq__(self, value):