U e5d!@sPddlZddlZddlmZGdddeZeZzddlmZWne k rXdZYnXdddgZ ddZ iZ Z d d ZedeeeeeeeeeeeeejeeeeejejfD] Z ee e <qe!ed dZ e dk ree e <e"j e e"<e#j e e#<e$j e e$<e%j e e%<edk rej e e<[ [ dgfd dZ&iZ'Z d dZ(e(e ed<e(e ee<e(e ee<e(e e<e(e e<e(e e<e(e e<e(e e<e(e e<e(e ej)<e(e e<e(e ej<e(e ej<e(e ej<e(e e<e&fddZ*e*e e"<e&fddZ+e+e e<e&fddZ,e,e e#<edk re,e e<ddZ-e-e ej.<[ ddZ/ddde&fddZ0[[[dS)N)dispatch_tablec@s eZdZdS)ErrorN)__name__ __module__ __qualname__rr/usr/lib64/python3.8/copy.pyr7sr) PyStringMapcopydeepcopycCst|}t|}|r||St|tr0t|St|dd}|dk rL||St|}|dk rh||}nBt|dd}|dk r|d}n$t|dd}|r|}n td|t|t r|St |df|S)N__copy__ __reduce_ex__ __reduce__z%un(shallow)copyable object of type %s) type_copy_dispatchget issubclass_copy_immutablegetattrrr isinstancestr _reconstruct)xclscopierreductorrvrrrr Bs,          cCs|SNr)rrrrrksrCodeTypec Cs |dkr i}t|}|||}||k r,|St|}t|}|dk rR|||}nt|trht||}nt|dd}|dk r||}nzt|}|r||}nBt|dd}|dk r|d}n$t|dd}|r|}n td|t |t r|}nt ||f|}||k r|||<t |||S)N __deepcopy__r rrz"un(deep)copyable object of type %s) idrr_deepcopy_dispatchr_deepcopy_atomicrrrrrr _keep_alive) rmemoZ_nildyrrrrrrrr sD               cCs|Srrrr%rrrr#sr#cCs2g}||t|<|j}|D]}||||q|Sr)r!append)rr%r r'r)arrr_deepcopy_lists  r+cshfdd|D}zt|WStk r6YnXt||D]\}}||k rBt|}qdqB|}|S)Ncsg|]}|qSrr).0r*r r%rr sz#_deepcopy_tuple..)r!KeyErrorziptuple)rr%r r'kjrr-r_deepcopy_tuplesr4cCs:i}||t|<|D]\}}|||||||<q|Sr)r!items)rr%r r'keyvaluerrr_deepcopy_dicts  r8cCst||jt|j|Sr)r__func__r __self__r(rrr_deepcopy_methodsr;cCs>z|t||Wn"tk r8|g|t|<YnXdSr)r!r)r/r(rrrr$s r$csbdk }|r$|r$fdd|D}||} |r<| t|<|dk r|rR|}t| drh| |n^t|trt|dkr|\}} nd} |dk r| j|| dk r| D]\} } t | | | q|dk r|r|D]} | } | | qn|D]} | | q|dk r^|rF|D]&\} } | } | } | | | <qn|D]\} } | | | <qJ| S)Nc3s|]}|VqdSrr)r,argr-rr sz_reconstruct.. __setstate__) r!hasattrr>rr1len__dict__updater5setattrr))rr%funcargsstateZlistiterZdictiterr Zdeepr'Z slotstater6r7itemrr-rrsF               r)1typesweakrefcopyregr ExceptionrerrorZorg.python.corer ImportError__all__r rr&rrintfloatboolcomplexrr1bytes frozensetrangeslicepropertyBuiltinFunctionTypeEllipsisNotImplemented FunctionTypereftrlistdictset bytearrayr r"r#rr+r4r8r; MethodTyper$rrrrr3s   '        4             -