diff options
| author | James Polley <jamezpolley@gmail.com> | 2015-05-22 14:54:34 -0700 |
|---|---|---|
| committer | James Polley <jamezpolley@gmail.com> | 2015-05-22 14:54:34 -0700 |
| commit | 6debf8d3d7c4ad63d2aae277fc9b4581c851548e (patch) | |
| tree | 2b3c4ece831b636c5df2c34b46db7f1892db6420 /pkg_resources | |
| parent | 1f7177fc0f54fac1d76ee8a1c77f93cb2f6f7dc1 (diff) | |
| download | python-setuptools-git-6debf8d3d7c4ad63d2aae277fc9b4581c851548e.tar.gz | |
Expand the range of valid operators to include comparators
Diffstat (limited to 'pkg_resources')
| -rw-r--r-- | pkg_resources/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index 779bd367..b4029c4a 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -1489,6 +1489,10 @@ class MarkerEvaluation(object): 'in': lambda x, y: x in y, '==': operator.eq, '!=': operator.ne, + '<': operator.lt, + '>': operator.gt, + '<=': operator.le, + '>=': operator.ge, } if hasattr(symbol, 'or_test'): ops[symbol.or_test] = cls.test |
