Skip to content

Commit

Permalink
Removed debugging print messages i forgot to remove.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasli committed Oct 29, 2019
1 parent 43d9005 commit bbbd923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fileparse/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ def search_stream(self, stream: TextStream, rematch_on_start=False, stop_at_new_
else:
if self.end_pattern and any(end_pattern.match(line) for end_pattern in end_patterns):
# We are done here!
print(f'{self.content_type}:{self.end_pattern.pattern}: Stop at end_pattern.')
# print(f'{self.content_type}:{self.end_pattern.pattern}: Stop at end_pattern.')
break
elif stop_at_new_start and self.start_pattern.match(line):
# Assumes that reaching a start_pattern again means end of current ant start of book.
# So we are done here, and need to parse current line again.
# Only works if no end-pattern is set.
stream.backtrack_reader_number_of_lines(1)
print(f'{self.content_type}:{self.start_pattern.pattern}: Stop at book start.')
# print(f'{self.content_type}:{self.start_pattern.pattern}: Stop at book start.')
break
elif self.sub_content_finders: # We now go looking for sub_content.
for sub in self.sub_content_finders:
Expand Down

0 comments on commit bbbd923

Please sign in to comment.