Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pdfreader/parsers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def maybe_spaces_or_comments(self):

def eol(self):
""" EOL is either CR or LF or the both """
if self.current not in EOL:
if not self.is_eol:
self.on_parser_error("EOL expected")
self.maybe_eol()

Expand All @@ -88,7 +88,7 @@ def maybe_eol(self):

@property
def is_eol(self):
return self.current is not None and self.current in EOL
return self.is_eof or self.current in EOL

@property
def is_whitespace(self):
Expand Down