o ãÄdš ã@sˆddlZddlZddlZddlZddlZddlmZej d¡r%dd„Z nej Z dd„Z e Z dZdd „Zd d „Zd d „ZddlmZdS)éN)ÚsixÚwinc CsRzt |¡Wnty }z |jtjks‚WYd}~nd}~wwt ||¡dS)N)ÚosÚremoveÚOSErrorÚerrnoÚENOENTÚrename)Zcurrent_filenameZ new_filenameÚe©r úl/private/var/folders/v1/_jykv66s6qd26_69j1njbrl80000gr/T/pip-target-p1gutpg6/lib/python/s3transfer/compat.pyÚ rename_files  û€ÿr cCst |¡dS)Né)ÚinspectÚgetfullargspec)Úfuncr r r Úaccepts_kwargs%srcCsRt|dƒr | ¡St|dƒr't|dƒr'z | dd¡WdSty&YdSwdS)z»Backwards compat function to determine if a fileobj is seekable :param fileobj: The file-like object to determine if seekable :returns: True, if seekable. False, otherwise. ÚseekableÚseekÚtellréTF)Úhasattrrrr©Úfileobjr r r r1s   þrcCst|dƒr | ¡St|dƒS)z´Determines whether or not a file-like object is readable. :param fileobj: The file-like object to determine if readable :returns: True, if readable. False otherwise. ÚreadableÚread)rrrr r r rIs  rcCs.ttdƒrt | ¡d|¡dS| |¡dS)NÚposix_fallocater)rrrÚfilenoÚtruncate)rÚsizer r r Ú fallocateVs r )Ú BaseManager)rrrÚsocketÚsysZbotocore.compatrÚplatformÚ startswithr r rÚConnectionErrorZ SOCKET_ERRORÚMAXINTrrr Zmultiprocessing.managersr!r r r r Ús