Skip to content

Commit c8f3c6d

Browse files
committed
fix python 3.x breakage
1 parent de47a19 commit c8f3c6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nameparser/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,7 @@ def join_on_conjunctions(self, pieces, additional_parts_count=0):
596596
if prefixes:
597597
i = pieces.index(prefixes[0])
598598
# join everything after the prefix until the next suffix
599-
next_suffix = filter(self.is_suffix, pieces[i:])
599+
next_suffix = list(filter(self.is_suffix, pieces[i:]))
600600
if next_suffix:
601601
j = pieces.index(next_suffix[0])
602602
new_piece = ' '.join(pieces[i:j])

0 commit comments

Comments
 (0)