From 0bca2ac642372796b5fbb711ad0f4e321275ca50 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Fri, 12 Jun 2026 08:30:49 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20dead=20state=20from=20S?= =?UTF-8?q?plitter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- bibtexparser/splitter.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/bibtexparser/splitter.py b/bibtexparser/splitter.py index 6ec8f94..b59c7c0 100644 --- a/bibtexparser/splitter.py +++ b/bibtexparser/splitter.py @@ -47,10 +47,6 @@ def __init__(self, bibstr: str): self._reset_block_status(current_char_index=0) def _reset_block_status(self, current_char_index: int) -> None: - self._open_brackets = 0 - self._is_quote_open = False - self._expected_next: Optional[List[str]] = None - # By default, we assume that an implicit comment is started # at the beginning of the file and after each @{...} block. # We then ignore empty implicit comments. @@ -420,7 +416,6 @@ def _handle_entry(self, m, m_val) -> Union[Entry, ParsingFailedBlock]: end_index=comma_mark.end(), ) else: - self._open_brackets += 1 key = self.bibstr[m.end() + 1 : comma_mark.start()].strip() fields, end_index, duplicate_keys = self._move_to_end_of_entry(comma_mark.end())