Skip to content

Commit

Permalink
Get a real parser, tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed May 4, 2018
1 parent 3bcf64b commit 82714e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/tidy/servo_tidy/tidy.py
Expand Up @@ -398,7 +398,8 @@ def check_toml(file_name, lines):
for idx, line in enumerate(lines):
if idx == 0 and "[workspace]" in line:
raise StopIteration
if line.find("*") != -1:
line_without_comment, _, _ = line.partition("#")
if line_without_comment.find("*") != -1:
yield (idx + 1, "found asterisk instead of minimum version number")
for license_line in licenses_toml:
ok_licensed |= (license_line in line)
Expand Down

0 comments on commit 82714e0

Please sign in to comment.