/usr/lib/python2.6/site-packages/openstack
Edit: /usr/lib/python2.6/site-packages/openstack/utils.pyc (2808B)
Ñò
5
Wc @ s+ d d k Z e d d d „ Z d „ Z d S( iÿÿÿÿNc C s+ | d j o | d j o t d ƒ ‚ n t i d ƒ } t i d ƒ } t i d ƒ } | d j o: t i | ƒ } | i | ƒ | i | ƒ | i | ƒ n | d j o: t i | ƒ } | i | ƒ | i | ƒ | i | ƒ n | i | o
t i
n t i ƒ | i | o
t i
n t i ƒ d S( s Enable logging to a file at path and/or a console stream.
This function is available for debugging purposes. If you wish to
log this package's message in your application, the standard library
``logging`` package will receive these messages in any handlers you
create.
:param bool debug: Set this to ``True`` to receive debug messages,
which includes HTTP requests and responses,
or ``False`` for warning messages.
:param str path: If a *path* is specified, logging output will
written to that file in addition to sys.stderr.
The path is passed to logging.FileHandler,
which will append messages the file (and create
it if needed).
:param stream: One of ``None `` or ``sys.stdout`` or ``sys.stderr``.
If it is ``None``, nothing is logged to a stream.
If it isn't ``None``, console output is logged
to this stream.
:rtype: None
s path and/or stream must be sett openstackt keystoneauths/ %(asctime)s %(levelname)s: %(name)s %(message)sN( t Nonet
ValueErrort loggingt getLoggert Formattert
StreamHandlert setFormattert
addHandlert FileHandlert setLevelt DEBUGt WARNING( t debugt patht streamt loggert ksalogt formattert consolet file_handler( ( s5 /tmp/pip-build-wCUybK/openstacksdk/openstack/utils.pyt enable_logging s$
!c G s d i d „ | Dƒ ƒ S( s A custom version of urljoin that simply joins strings into a path.
The real urljoin takes into account web semantics like when joining a url
like /path this should be joined to http://host/path as it is an anchored
link. We generally won't care about that in client.
t /c s s/ x( | ]! } t | p d ƒ i d ƒ Vq Wd S( t R N( t strt strip( t .0t a( ( s5 /tmp/pip-build-wCUybK/openstacksdk/openstack/utils.pys
F s ( t join( t args( ( s5 /tmp/pip-build-wCUybK/openstacksdk/openstack/utils.pyt urljoin? s ( R t FalseR R R ( ( ( s5 /tmp/pip-build-wCUybK/openstacksdk/openstack/utils.pyt
s /