summaryrefslogtreecommitdiff
path: root/pkg_resources/__init__.py
diff options
context:
space:
mode:
authorSteve Kowalik <steven@wedontsleep.org>2016-02-09 17:12:47 +1100
committerSteve Kowalik <steven@wedontsleep.org>2016-02-09 17:12:47 +1100
commit43d0308ad6a8c83be645b09e8c1871b36ff3c4c9 (patch)
tree58c14f1f99711caad2df1ea3a001868c753f6a96 /pkg_resources/__init__.py
parentcf9402a0d8b83b15353801b9a16e1330426a049c (diff)
downloadpython-setuptools-git-43d0308ad6a8c83be645b09e8c1871b36ff3c4c9.tar.gz
Correct tests after the move to packaging 16.1.
Diffstat (limited to 'pkg_resources/__init__.py')
-rw-r--r--pkg_resources/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index b0b04579..286c03ed 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -1410,10 +1410,10 @@ def evaluate_marker(text, extra=None):
This implementation uses the 'pyparsing' module.
"""
- marker = packaging.markers.Marker(text)
try:
+ marker = packaging.markers.Marker(text)
return marker.evaluate()
- except packaging.marker.InvalidMarker as e:
+ except packaging.markers.InvalidMarker as e:
raise SyntaxError(e)