<s> """<STR_LIT>""" <EOL> import sys <EOL> _PYTHON3 = sys . version_info >= ( <NUM_LIT:3> , <NUM_LIT:0> , <NUM_LIT:0> ) <EOL> if _PYTHON3 : <EOL> long = int <EOL> unicode = str <EOL> class Error ( Exception ) : <EOL> pass <EOL> __all__ = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> def deepcopy ( x ) : <EOL> """<STR_LIT>""" <EOL> try : <EOL> return _deepcopy_dispatch [ type ( x ) ] ( x ) <EOL> except KeyError : <EOL> raise Error ( '<STR_LIT>' + <EOL> '<STR_LIT>' % type ( x ) ) <EOL> _deepcopy_dispatch = d = { } <EOL> def _deepcopy_atomic ( x ) : <EOL> return x <EOL> for x in ( type ( None ) , int , long , float , <EOL> bool , str , unicode , type ) : <EOL> d [ x ] = _deepcopy_atomic <EOL> def _deepcopy_list ( x ) : <EOL> return [ deepcopy ( a ) for a in x ] <EOL> d [ list ] = _deepcopy_list <EOL> def _deepcopy_dict ( x ) : <EOL> y = { } <EOL> for key , value in x . items ( ) : <EOL> y [ deepcopy ( key ) ] = deepcopy ( value ) <EOL> return y <EOL> d [ dict ] = _deepcopy_dict <EOL> del d </s>
