summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xexts/pip_find_deps.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/exts/pip_find_deps.py b/exts/pip_find_deps.py
index 18efb58..30b0c68 100755
--- a/exts/pip_find_deps.py
+++ b/exts/pip_find_deps.py
@@ -95,6 +95,16 @@ class Bound(object):
x = self.val(x)
return x >= self.value if self.inclusive else x > self.value
+ def __le__(self, x):
+ print('__le__ self: %s, x: %s' % (self, x))
+ x = self.val(x)
+ return x <= self.value
+
+ def __ge__(self, x):
+ print('__ge__ self: %s, x: %s' % (self, x))
+ x = self.val(x)
+ return x >= self.value
+
def _symbol(self):
return self.symbols[self.bound_type][self.inclusive]