Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/s/i/silva.core.upgrade-3.0.2/src/silva/core/upgrade/upgrade.py   silva.core.upgrade(Download)
from silva.core.interfaces import IUpgrader, IUpgradeRegistry, IRoot
from silva.core.interfaces.errors import UpgradeError
from silva.core.interfaces.events import UpgradeFinishedEvent
from silva.core.interfaces.events import UpgradeStartedEvent
from silva.core.interfaces.events import UpgradeTransaction, IUpgradeTransaction
            logger.removeHandler(log_handler)
            self.__in_process = False
        notify(UpgradeFinishedEvent(content, from_version, to_version, end is not None))
        log_stream.seek(0, 0)
        return log_stream
            process.post_upgrade()
        except:
            notify(UpgradeFinishedEvent(root, 'n/a', version, False))
            raise
        else:
            end = datetime.datetime.now()
            notify(UpgradeFinishedEvent(root, 'n/a', version, True))
            logger.removeHandler(log_handler)
            self.__in_process = False
        notify(UpgradeFinishedEvent(root, from_version, to_version, end is not None))
        log_stream.seek(0, 0)
        return log_stream