/usr/lib/python2.6/site-packages/pbr/tests
Edit: /usr/lib/python2.6/site-packages/pbr/tests/util.pyc (1299B)
Ñò
;vVc
@ s d d k Z d d k Z d d k Z d d k Z y d d k Z Wn e j
o d d k Z n Xe i d „ ƒ Z d „ Z d S( iÿÿÿÿNc c s[ t i ƒ } | i | ƒ | Vt | d ƒ i i ƒ } z | ~ } | i | ƒ Wd QXd S( Nt w( t configparsert SafeConfigParsert readt opent __exit__t __enter__t write( t filenamet cfgt _[1]t fp( ( s+ /tmp/pip-build-cD3xZi/pbr/pbr/tests/util.pyt open_config4 s
&c C s d „ } t i | d | ƒS( sk shutil.rmtree() with error handler.
Handle 'access denied' from trying to delete read-only files.
c S s> t i | t i ƒ p! t i | t i ƒ | | ƒ n ‚ d S( N( t ost accesst W_OKt chmodt statt S_IWUSR( t funct patht exc_info( ( s+ /tmp/pip-build-cD3xZi/pbr/pbr/tests/util.pyt onerrorC s R ( t shutilt rmtree( R R ( ( s+ /tmp/pip-build-cD3xZi/pbr/pbr/tests/util.pyR = s (
t
contextlibR
R R t ConfigParserR t ImportErrort contextmanagerR R ( ( ( s+ /tmp/pip-build-cD3xZi/pbr/pbr/tests/util.pyt
) s