<s> """<STR_LIT>""" <EOL> import re <EOL> def fullmatch ( pattern , string , flags = <NUM_LIT:0> ) : <EOL> """<STR_LIT>""" <EOL> grouped_pattern = re . compile ( "<STR_LIT>" % pattern . pattern , pattern . flags ) <EOL> m = grouped_pattern . match ( string ) <EOL> if m and m . end ( ) < len ( string ) : <EOL> m = None <EOL> return m <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> import doctest <EOL> doctest . testmod ( ) </s>
