Commit e47313a2 by Sébastien Eustace

Fix formatting

parent 7f82674c
...@@ -20,8 +20,7 @@ from poetry.semver import parse_constraint ...@@ -20,8 +20,7 @@ from poetry.semver import parse_constraint
from .markers import MARKER_EXPR, Marker from .markers import MARKER_EXPR, Marker
LEGACY_REGEX = ( LEGACY_REGEX = r"""
r"""
(?P<operator>(==|!=|<=|>=|<|>)) (?P<operator>(==|!=|<=|>=|<|>))
\s* \s*
(?P<version> (?P<version>
...@@ -32,11 +31,9 @@ LEGACY_REGEX = ( ...@@ -32,11 +31,9 @@ LEGACY_REGEX = (
# them, and a comma since it's a version separator. # them, and a comma since it's a version separator.
) )
""" """
)
REGEX = ( REGEX = r"""
r"""
(?P<operator>(~=|==|!=|<=|>=|<|>|===)) (?P<operator>(~=|==|!=|<=|>=|<|>|===))
(?P<version> (?P<version>
(?: (?:
...@@ -128,7 +125,6 @@ REGEX = ( ...@@ -128,7 +125,6 @@ REGEX = (
) )
) )
""" """
)
class InvalidRequirement(ValueError): class InvalidRequirement(ValueError):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment