Skip to content

Commit 1843fd8

Browse files
derek73claude
andcommitted
Remove dead code: unused ENCODING constant and Python 2 next() shim
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 9cdefd9 commit 1843fd8

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

nameparser/parser.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
from nameparser.config import Constants
1212
from nameparser.config import DEFAULT_ENCODING
1313

14-
ENCODING = 'utf-8'
15-
16-
1714
def group_contiguous_integers(data: Iterable[int]) -> list[tuple[int, int]]:
1815
"""
1916
return list of tuples containing first and last index
@@ -159,9 +156,6 @@ def __setitem__(self, key: str, value: str) -> None:
159156
else:
160157
raise KeyError("Not a valid HumanName attribute", key)
161158

162-
def next(self) -> str:
163-
return self.__next__()
164-
165159
def __next__(self) -> str:
166160
if self._count >= len(self._members):
167161
self._count = 0

0 commit comments

Comments
 (0)