Skip to content

Commit

Permalink
Removing stray print and getting correct line number
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed May 9, 2019
1 parent eca60d0 commit 515ce48
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/chunks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_chunks(filename, reader):
f'Badly-formed end of chunk {filename}:{i}'
in_chunk = False
else:
result.add((filename, i, marker))
result.add((filename, i+1, marker))
in_chunk = True

return result
Expand All @@ -48,7 +48,6 @@ def bad_chunk(chunk):
'''Is this a badly formed chunk?'''

filename, line_number, marker = chunk
print('***', filename, line_number, marker)

# Naked chunk (plain text).
if marker == MARKER:
Expand Down

0 comments on commit 515ce48

Please sign in to comment.