def _init_once():
 path = os.getenv('LIBCLOUD_DEBUG')
 if path:
  mode = 'a'
  from libcloud.utils.py3 import PY3
  if ((path in ['/dev/stderr', '/dev/stdout']) and PY3):
   mode = 'w'
  fo = codecs.open(path, mode, encoding='utf8')
  enable_debug(fo)
  if have_paramiko:
   paramiko.common.logging.basicConfig(level=paramiko.common.DEBUG)

def _init_once ( ) : path = os . getenv ( 'LIBCLOUD_DEBUG' ) if path : mode = 'a' from libcloud . utils . py3 import PY3 if ( ( path in [ '/dev/stderr' , '/dev/stdout' ] ) and PY3 ) : mode = 'w' fo = codecs . open ( path , mode , encoding = 'utf8' ) enable_debug ( fo ) if have_paramiko : paramiko . common . logging . basicConfig ( level = paramiko . common . DEBUG )
utility function that is ran once on library import .