<s> """<STR_LIT>""" <EOL> import re <EOL> class CopyableRegexObject ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , pattern ) : <EOL> self . pattern = pattern <EOL> self . regex = re . compile ( pattern ) <EOL> def match ( self , * args , ** kwargs ) : <EOL> return self . regex . match ( * args , ** kwargs ) <EOL> def sub ( self , * args , ** kwargs ) : <EOL> return self . regex . sub ( * args , ** kwargs ) <EOL> def __copy__ ( self ) : <EOL> return CopyableRegexObject ( self . pattern ) <EOL> def __deepcopy__ ( self , unused_memo ) : <EOL> return self . __copy__ ( ) </s>
