Skip to content

Commit

Permalink
fix(#4274): Update empty lines and comments lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
GGP1 committed Oct 11, 2023
1 parent ebd26f4 commit 63c6ef3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def prepare_input(pip_mode, input_file_path):
with open(input_file_path, mode='r') as input_file:
lines = input_file.readlines()
for line in lines:
if line.startswith('\n') or line.startswith('#'):
if line.strip().startswith('#') or not line.strip():
continue
line = re.sub('[<>~]', '=', line)
if ',' in line:
Expand Down

0 comments on commit 63c6ef3

Please sign in to comment.