def remove_duplicates(seq):
last_boundary = False<EOL>for char in seq:<EOL><INDENT>if char == '<STR_LIT:\x00>':<EOL><INDENT>if not last_boundary:<EOL><INDENT>last_boundary = True<EOL>yield char<EOL><DEDENT><DEDENT>else:<EOL><INDENT>last_boundary = False<EOL>yield char<EOL><DEDENT><DEDENT>
Removes duplicate boundary token characters from the given
character iterable.

Arguments:
- `seq`: