summaryrefslogtreecommitdiff
path: root/pkg_resources/__init__.py
diff options
context:
space:
mode:
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)