/usr/lib/python2.6/site-packages/swiftclient
Edit: /usr/lib/python2.6/site-packages/swiftclient/utils.pyc (9234B)
Ñò
;vVc @ sâ d Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z e d ƒ Z d Z
d
„ Z d „ Z e
d „ Z d
„ Z d „ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s3 Miscellaneous utility functions for use with Swift.iÿÿÿÿNt truet 1t yest ont tt yt d41d8cd98f00b204e9800998ecf8427ec C s0 | t j p# t | t i ƒ o | i ƒ t j S( s¯
Returns True if the value is either True or a string in TRUE_VALUES.
Returns False otherwise.
This function comes from swift.common.utils.config_true_value()
( t Truet
isinstancet sixt string_typest lowert TRUE_VALUES( t value( ( s= /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/utils.pyt config_true_value s
c C sî | oÙ d } t d ƒ } t | ƒ } | d j o xF | d j o8 y | i d ƒ } Wn t j
o Pn X| d :} q5 W| d j o5 | d j o d | | f } q½ d | | f } qÁ n | d j o d | } qê n d
| } | S( s
convert a number > 1024 to printable format, either in 4 char -h format as
with ls -lh or return as 12 char right justified string
t t KMGTPEZYi iÿ g @i
s %3d%ss %.1f%ss %4ss %12s( t listt floatt popt
IndexError( t bytest
human_flagt suffixt modst temp( ( s= /tmp/pip-build-cD3xZi/python-swiftclient/swiftclient/utils.pyt prt_bytes&