o Àyð`€ ã@s¤ddlZddlZddlZddlZddlZddlmZej d¡r%dd„Z nej Z ej r4dd„Z e ZdZn dd„Z ejZejZd d „Zd d „Zd d„ZddlmZdS)éN)ÚsixÚwinc CsRzt |¡Wnty }z |jtjks‚WYd}~nd}~wwt ||¡dS)N)ÚosÚremoveÚOSErrorÚerrnoÚENOENTÚrename)Úcurrent_filenameÚ new_filenameÚe©r ú3/usr/lib/python3/dist-packages/s3transfer/compat.pyÚ rename_files  û€ÿrcCót |¡dS©Né)ÚinspectÚgetfullargspec©Úfuncr r rÚaccepts_kwargs&srcCrr)rÚ getargspecrr r rr2sc CsVt|dƒr | ¡St|dƒr)t|dƒr)z | dd¡WdSttfy(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ÚIOError©Úfileobjr r rr9s  þ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)rr!rr r rr!Qs  r!cCs.ttdƒrt | ¡d|¡dS| |¡dS)NÚposix_fallocater)rrr#ÚfilenoÚtruncate)r Úsizer r rÚ fallocate^s r')Ú BaseManager)rÚsysrrÚsocketÚbotocore.compatrÚplatformÚ startswithrr ÚPY3rÚConnectionErrorÚ SOCKET_ERRORÚMAXINTÚerrorÚmaxintrr!r'Úmultiprocessing.managersr(r r r rÚs(