Fix visual indentation for PEP8 conformance.
Corrects misindented continuations (PEP8 E127, E128). The run_tests.sh script's PEP8 pass (with current 1.3.3) was reporting under- or over-indented visual continuations in a handful of files, all of which are fixed with this trivial patch. Change-Id: I19388dc0011546abe65b37d31df02debb3676003
This commit is contained in:
parent
45e7e1f2f5
commit
853b69e6c4
@ -140,8 +140,9 @@ def notify(context, publisher_id, event_type, priority, payload):
|
|||||||
driver.notify(context, msg)
|
driver.notify(context, msg)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
LOG.exception(_("Problem '%(e)s' attempting to "
|
LOG.exception(_("Problem '%(e)s' attempting to "
|
||||||
"send to notification system. Payload=%(payload)s") %
|
"send to notification system. "
|
||||||
locals())
|
"Payload=%(payload)s") %
|
||||||
|
locals())
|
||||||
|
|
||||||
|
|
||||||
_drivers = None
|
_drivers = None
|
||||||
@ -170,7 +171,7 @@ def add_driver(notification_driver):
|
|||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
LOG.exception(_("Failed to load notifier %s. "
|
LOG.exception(_("Failed to load notifier %s. "
|
||||||
"These notifications will not be sent.") %
|
"These notifications will not be sent.") %
|
||||||
notification_driver)
|
notification_driver)
|
||||||
else:
|
else:
|
||||||
# Driver is already loaded; just add the object.
|
# Driver is already loaded; just add the object.
|
||||||
_drivers[notification_driver] = notification_driver
|
_drivers[notification_driver] = notification_driver
|
||||||
|
@ -173,7 +173,7 @@ class Brain(object):
|
|||||||
LOG.warning(_("Inheritance-based rules are deprecated; update "
|
LOG.warning(_("Inheritance-based rules are deprecated; update "
|
||||||
"_check_%s") % match_kind)
|
"_check_%s") % match_kind)
|
||||||
func = (lambda brain, kind, value, target, cred:
|
func = (lambda brain, kind, value, target, cred:
|
||||||
old_func(value, target, cred))
|
old_func(value, target, cred))
|
||||||
|
|
||||||
if not func:
|
if not func:
|
||||||
LOG.error(_("No handler for matches of kind %s") % match_kind)
|
LOG.error(_("No handler for matches of kind %s") % match_kind)
|
||||||
|
@ -122,5 +122,6 @@ def marshall_now(now=None):
|
|||||||
def unmarshall_time(tyme):
|
def unmarshall_time(tyme):
|
||||||
"""Unmarshall a datetime dict."""
|
"""Unmarshall a datetime dict."""
|
||||||
return datetime.datetime(day=tyme['day'], month=tyme['month'],
|
return datetime.datetime(day=tyme['day'], month=tyme['month'],
|
||||||
year=tyme['year'], hour=tyme['hour'], minute=tyme['minute'],
|
year=tyme['year'], hour=tyme['hour'],
|
||||||
second=tyme['second'], microsecond=tyme['microsecond'])
|
minute=tyme['minute'], second=tyme['second'],
|
||||||
|
microsecond=tyme['microsecond'])
|
||||||
|
Loading…
Reference in New Issue
Block a user