Skip to content

Commit f91e32f

Browse files
committed
Dependency Specifiers: Require whitespace after in and not in
Otherwise `numpy; os_name in'posix'` and `numpy; os_name inos_name` would be valid. pypa/packaging 22.0 actually allows currently `numpy; os_name in'posix'`
1 parent 4193e04 commit f91e32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/specifications/dependency-specifiers.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ URI is defined in :rfc:`std-66 <3986>`)::
7070
Environment markers allow making a specification only take effect in some
7171
environments::
7272

73-
marker_op = version_cmp | (wsp+ 'in') | (wsp+ 'not' wsp+ 'in')
73+
marker_op = version_cmp | (wsp+ 'in' wsp+) | (wsp+ 'not' wsp+ 'in' wsp+)
7474
python_str_c = (wsp | letter | digit | '(' | ')' | '.' | '{' | '}' |
7575
'-' | '_' | '*' | '#' | ':' | ';' | ',' | '/' | '?' |
7676
'[' | ']' | '!' | '~' | '`' | '@' | '$' | '%' | '^' |

0 commit comments

Comments
 (0)