ó rmLbc@sØddlZddlZddlZddlZddlZejjddƒddlmZej j dƒr}d„Z n ej Z ej r§d„ZeZdZnd„ZejZejZd „Zd „ZdS( iÿÿÿÿNis/usr/lib/fence-agents/bundled(tsixtwincCsSytj|ƒWn+tk r>}|jtjks?‚q?nXtj||ƒdS(N(tostremovetOSErrorterrnotENOENTtrename(tcurrent_filenamet new_filenamete((s5/usr/lib/python2.7/site-packages/s3transfer/compat.pyt rename_files  cCstj|ƒdS(Ni(tinspecttgetfullargspec(tfunc((s5/usr/lib/python2.7/site-packages/s3transfer/compat.pytaccepts_kwargs'scCstj|ƒdS(Ni(R t getargspec(R((s5/usr/lib/python2.7/site-packages/s3transfer/compat.pyR3scCsqt|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((s5/usr/lib/python2.7/site-packages/s3transfer/compat.pyR:s  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((s5/usr/lib/python2.7/site-packages/s3transfer/compat.pyRRs (R tsysRRtsockettpathtinserttbotocore.compatRtplatformt startswithR RtPY3RtConnectionErrort SOCKET_ERRORtNonetMAXINTterrortmaxintRR(((s5/usr/lib/python2.7/site-packages/s3transfer/compat.pyt s$