Did I find the right examples for you? yes no

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/t/u/tuskar-0.4.1/tuskar/openstack/common/lockutils.py   tuskar(Download)
 
from tuskar.openstack.common import fileutils
from tuskar.openstack.common.gettextutils import _, _LE, _LI
from tuskar.openstack.common import log as logging
 
            LOG.debug('Released file lock "%s"', self.fname)
        except IOError:
            LOG.exception(_LE("Could not release the acquired lock `%s`"),
                          self.fname)
 

src/t/u/tuskar-0.4.1/tuskar/openstack/common/excutils.py   tuskar(Download)
import six
 
from tuskar.openstack.common.gettextutils import _LE
 
 
    def __exit__(self, exc_type, exc_val, exc_tb):
        if exc_type is not None:
            if self.reraise:
                logging.error(_LE('Original exception being dropped: %s'),
                              traceback.format_exception(self.type_,
                        this_exc_message != last_exc_message):
                    logging.exception(
                        _LE('Unexpected exception occurred %d time(s)... '
                            'retrying.') % exc_count)
                    last_log_time = cur_time