&VfidZddlmZddlmZddlmZ ddlZdZn #e $rdZYnwxYw ddl Z dZ n #e $rdZ YnwxYwdd Z erGd dej Z e rGdde jZdSdS)zC Patched ``BZ2File`` and ``LZMAFile`` to handle pickle protocol 5. ) annotations) PickleBuffer)PY310NTFb-bytes | bytearray | memoryview | PickleBufferreturnbytes | bytearray | memoryviewct|ttfr|St|tst|} |S#t $r%t |dcYSwxYw)z Return some 1-D `uint8` typed buffer. Coerces anything that does not match that description to one that does without copying if possible (otherwise will copy). A) isinstancebytes bytearrayrraw BufferError memoryviewtobytes)rs Hc:\PYTHON\DbComparer\venv\Lib\site-packages\pandas/compat/compressors.pyflatten_bufferrs!eY'(( a & & OO*uuww ***!}}$$S)))))*sA,BBc,eZdZes dfd ZxZSxZS)BZ2Filerintc`tt|SNsuperwriterselfr __class__s rrz BZ2File.write7#ww}}^A%6%6777rr__name__ __module__ __qualname__rr __classcell__rs@rrr4Y 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8r!rc,eZdZes dfd ZxZSxZS)LZMAFilerrc`tt|Srrrs rrzLZMAFile.writeFr r!r"r#r(s@rr+r+Cr)r!r+)rrrr )__doc__ __future__rpicklerpandas.compat._constantsrbz2has_bz2 ImportErrorlzmahas_lzmarrr+r!rr7sM#"""""******JJJGGGGGKKKHHHHH****0 8 8 8 8 8 8#+ 8 8 8 8 8 8 8 8 84= 8 8 8 8 8 8 8s''2<<