def __next__(self):
<EOL>if not self.tarfile._loaded:<EOL><INDENT>tarinfo = self.tarfile.next()<EOL>if not tarinfo:<EOL><INDENT>self.tarfile._loaded = True<EOL>raise StopIteration<EOL><DEDENT><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>tarinfo = self.tarfile.members[self.index]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise StopIteration<EOL><DEDENT><DEDENT>self.index += <NUM_LIT:1><EOL>return tarinfo<EOL>
Return the next item using TarFile's next() method.
           When all members have been read, set TarFile as _loaded.