break endless loop

This commit is contained in:
Jelmer Vernooij 2021-04-01 17:50:16 +01:00
parent c748bca228
commit e52e90dd89

View file

@ -1213,6 +1213,7 @@ def _parse_go_mod(f):
while line: while line:
parts = line.strip().split(" ") parts = line.strip().split(" ")
if not parts or parts == [""]: if not parts or parts == [""]:
line = readline()
continue continue
if len(parts) == 2 and parts[1] == "(": if len(parts) == 2 and parts[1] == "(":
line = readline() line = readline()