Skip to content

Commit 9e3e06d

Browse files
committed
comments cleanup
1 parent efe2558 commit 9e3e06d

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

nameparser/parser.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,6 @@ def parse_full_name(self):
470470
self.last_list = []
471471
self.suffix_list = []
472472
self.nickname_list = []
473-
self.prefix_joins = []
474473
self.unparsable = True
475474

476475

@@ -765,7 +764,7 @@ def join_on_conjunctions(self, pieces, additional_parts_count=0):
765764
conj_index[j] = val - rm_count
766765

767766

768-
# join prefixes to following lastnames: ['de la Vega'], ['van Buren III']
767+
# join prefixes to following lastnames: ['de la Vega'], ['van Buren']
769768
prefixes = list(filter(self.is_prefix, pieces))
770769
if prefixes:
771770
for prefix in prefixes:
@@ -781,11 +780,7 @@ def join_on_conjunctions(self, pieces, additional_parts_count=0):
781780

782781
new_piece = ''
783782

784-
# join everything after the prefix until the next non prefix
785-
# store joined pieces in prefix_joins. When a prefix occurs in a last name,
786-
# I think it means the rest of the name is part of the last name, so prefix_joins
787-
# lets us do that in the parser flow.
788-
# for prefix in prefixes:
783+
# join everything after the prefix until the next prefix or suffix
789784

790785
try:
791786
next_prefix = next(iter(filter(self.is_prefix, pieces[i + 1:])))

0 commit comments

Comments
 (0)