Skip to content

Commit 7cdc087

Browse files
committed
Split on ;
1 parent 3d685fa commit 7cdc087

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/trio/_tools/sync_requirements.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ def update_requirements(
5858
# Maintain extra markers if they exist
5959
old_version = rest.strip()
6060
extra = "\n"
61-
if " " in rest:
62-
old_version, extra = rest.split(" ", 1)
63-
extra = " " + extra
61+
if ";" in rest:
62+
old_version, extra = rest.split(";", 1)
63+
old_version = old_version.strip()
64+
extra = " ;" + extra
6465
version = version_data.get(name)
6566
# If does not exist, skip
6667
if version is None:

0 commit comments

Comments
 (0)