<s> '''<STR_LIT>''' <EOL> _builtin_next = next <EOL> _SENTINEL = object ( ) <EOL> def newnext ( iterator , default = _SENTINEL ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> try : <EOL> return iterator . __next__ ( ) <EOL> except AttributeError : <EOL> try : <EOL> return iterator . next ( ) <EOL> except AttributeError : <EOL> raise TypeError ( "<STR_LIT>" . format ( <EOL> iterator . __class__ . __name__ ) ) <EOL> except StopIteration as e : <EOL> if default is _SENTINEL : <EOL> raise e <EOL> else : <EOL> return default <EOL> __all__ = [ '<STR_LIT>' ] </s>
