diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-07 10:05:54 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-06-07 10:05:54 -0400 |
commit | f19b8bc61b0585116d62e6c2086c918bad01ce68 (patch) | |
tree | 1b20c0b747ed643aca90c36131d1728652df2a8d | |
parent | 90a3e3b896d4f86337692f361a5a1bdcbf310bf9 (diff) | |
parent | 6debf8d3d7c4ad63d2aae277fc9b4581c851548e (diff) | |
download | external_python_setuptools-f19b8bc61b0585116d62e6c2086c918bad01ce68.tar.gz external_python_setuptools-f19b8bc61b0585116d62e6c2086c918bad01ce68.tar.bz2 external_python_setuptools-f19b8bc61b0585116d62e6c2086c918bad01ce68.zip |
Merged in jamezpolley/setuptools (pull request #134)
Expand the range of valid operators to include comparators
-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 7bb0bdb3..8713736e 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 |