]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix visual indentation for PEP8 conformance.
authorJeremy Stanley <fungi@yuggoth.org>
Tue, 14 Aug 2012 05:20:08 +0000 (05:20 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Tue, 14 Aug 2012 12:20:08 +0000 (12:20 +0000)
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

quantum/openstack/common/notifier/api.py
quantum/openstack/common/policy.py
quantum/openstack/common/timeutils.py

index cd3ce1e1b0c04a44c072acba4a4e8163ad5f24ab..36934062c05be16d95113d4a2f47ab844cc9241f 100644 (file)
@@ -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
index 910a8366e8b069dcef95f183cf32dcc911e622b0..3eb5c526c66ec5f25e717b2e6f412b95179f3c07 100644 (file)
@@ -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)
index ae300e456db2ea9b0a3f0553828beadf13684148..67327478a9c2acebedfad5c01c2a58e00d081668 100644 (file)
@@ -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'])