diff --git a/quantum/openstack/common/notifier/api.py b/quantum/openstack/common/notifier/api.py index cd3ce1e1b0..36934062c0 100644 --- a/quantum/openstack/common/notifier/api.py +++ b/quantum/openstack/common/notifier/api.py @@ -140,8 +140,9 @@ def notify(context, publisher_id, event_type, priority, payload): driver.notify(context, msg) except Exception, e: LOG.exception(_("Problem '%(e)s' attempting to " - "send to notification system. Payload=%(payload)s") % - locals()) + "send to notification system. " + "Payload=%(payload)s") % + locals()) _drivers = None @@ -170,7 +171,7 @@ def add_driver(notification_driver): except ImportError as e: LOG.exception(_("Failed to load notifier %s. " "These notifications will not be sent.") % - notification_driver) + notification_driver) else: # Driver is already loaded; just add the object. _drivers[notification_driver] = notification_driver diff --git a/quantum/openstack/common/policy.py b/quantum/openstack/common/policy.py index 910a8366e8..3eb5c526c6 100644 --- a/quantum/openstack/common/policy.py +++ b/quantum/openstack/common/policy.py @@ -173,7 +173,7 @@ class Brain(object): LOG.warning(_("Inheritance-based rules are deprecated; update " "_check_%s") % match_kind) func = (lambda brain, kind, value, target, cred: - old_func(value, target, cred)) + old_func(value, target, cred)) if not func: LOG.error(_("No handler for matches of kind %s") % match_kind) diff --git a/quantum/openstack/common/timeutils.py b/quantum/openstack/common/timeutils.py index ae300e456d..67327478a9 100644 --- a/quantum/openstack/common/timeutils.py +++ b/quantum/openstack/common/timeutils.py @@ -122,5 +122,6 @@ def marshall_now(now=None): def unmarshall_time(tyme): """Unmarshall a datetime dict.""" return datetime.datetime(day=tyme['day'], month=tyme['month'], - year=tyme['year'], hour=tyme['hour'], minute=tyme['minute'], - second=tyme['second'], microsecond=tyme['microsecond']) + year=tyme['year'], hour=tyme['hour'], + minute=tyme['minute'], second=tyme['second'], + microsecond=tyme['microsecond'])