ó èc<^c@sÞddlZddlZddlZddlZddlZddlmZejjdƒrjd„Z n ej Z ej r”d„Z e ZdZnd„Z ejZejZd„Zd„Zd „Zdd lmZdS( iÿÿÿÿN(tsixtwincCsSytj|ƒWn+tk r>}|jtjks?‚q?nXtj||ƒdS(N(tostremovetOSErrorterrnotENOENTtrename(tcurrent_filenamet new_filenamete((s</opt/awscli/lib/python2.7/site-packages/s3transfer/compat.pyt rename_files  cCstj|ƒdS(Ni(tinspecttgetfullargspec(tfunc((s</opt/awscli/lib/python2.7/site-packages/s3transfer/compat.pytaccepts_kwargs&scCstj|ƒdS(Ni(R t getargspec(R((s</opt/awscli/lib/python2.7/site-packages/s3transfer/compat.pyR2scCsqt|dƒr|jƒSt|dƒrmt|dƒrmy|jddƒtSWqmttfk ritSXntS(s»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. tseekabletseekttellii(thasattrRRtTrueRtIOErrortFalse(tfileobj((s</opt/awscli/lib/python2.7/site-packages/s3transfer/compat.pyR9s  cCs&t|dƒr|jƒSt|dƒS(s´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. treadabletread(RR(R((s</opt/awscli/lib/python2.7/site-packages/s3transfer/compat.pyRQs cCs<ttdƒr+tj|jƒd|ƒn |j|ƒdS(Ntposix_fallocatei(RRRtfilenottruncate(Rtsize((s</opt/awscli/lib/python2.7/site-packages/s3transfer/compat.pyt fallocate^s(t BaseManager(R tsysRRtsockettbotocore.compatRtplatformt startswithR RtPY3RtConnectionErrort SOCKET_ERRORtNonetMAXINTterrortmaxintRRRtmultiprocessing.managersR (((s</opt/awscli/lib/python2.7/site-packages/s3transfer/compat.pyt s&