Skip to content

Commit

Permalink
Ignore comments in native control field parsing (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
xolox committed Apr 19, 2020
1 parent 2feb9ab commit ffed9ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deb_pkg_tools/deb822.py
Expand Up @@ -62,6 +62,9 @@ def parse_deb822(text):
parsed_fields = []
while input_lines:
line = input_lines.pop(0)
# Completely ignore comment lines (even nested between "continuation lines").
if line.startswith(u"#"):
continue
# Guard against empty lines that end the current "paragraph".
if is_empty_line(line):
# Check whether any input text remains.
Expand Down

0 comments on commit ffed9ca

Please sign in to comment.