]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix some reST field lists in docstrings
authorYi Zhao <zhaoyi@cmss.chinamobile.com>
Thu, 12 Nov 2015 08:38:45 +0000 (16:38 +0800)
committerYi Zhao <zhaoyi@cmss.chinamobile.com>
Sun, 15 Nov 2015 00:54:32 +0000 (08:54 +0800)
This patch updates some docstrings to comply with the reST field
lists syntax.

Change-Id: I1b4469f3c90915cdfd6462c0517f6924b263fef6

neutron/agent/l2/agent_extension.py
neutron/agent/ovsdb/native/idlutils.py
neutron/tests/functional/agent/l2/base.py

index 4144d5fbe5aec9768f604e5863d0b662e374bc05..d77ea84ebf2d14d481d31adae4f36ac37e4eda42 100644 (file)
@@ -46,14 +46,14 @@ class AgentCoreResourceExtension(object):
         code flow. Thus, it's this function's responsibility to check what
         actually changed.
 
-        :param context - rpc context
-        :param data - port data
+        :param context: rpc context
+        :param data: port data
         """
 
     @abc.abstractmethod
     def delete_port(self, context, data):
         """Delete port from agent extension.
 
-        :param context - rpc context
-        :param data - port data
+        :param context: rpc context
+        :param data: port data
         """
index b02acd30553df8a3f3d9446cbdf290896cc53705..a7b683ca7774dcf280eff1151eb89641bd67e37d 100644 (file)
@@ -143,8 +143,8 @@ def get_column_value(row, col):
 def condition_match(row, condition):
     """Return whether a condition matches a row
 
-    :param row       An OVSDB Row
-    :param condition A 3-tuple containing (column, operation, match)
+    :param row:       An OVSDB Row
+    :param condition: A 3-tuple containing (column, operation, match)
     """
 
     col, op, match = condition
index 39e511b11dffd737ca1c54ab772978f0db60de9c..84b7ee3d50e849acc24520700378f2a27daf5199 100644 (file)
@@ -210,9 +210,10 @@ class OVSAgentTestFramework(base.BaseOVSLinuxTestCase):
 
     def _expected_plugin_rpc_call(self, call, expected_devices, is_up=True):
         """Helper to check expected rpc call are received
+
         :param call: The call to check
-        :param expected_devices The device for which call is expected
-        :param is_up True if expected_devices are devices that are set up,
+        :param expected_devices: The device for which call is expected
+        :param is_up: True if expected_devices are devices that are set up,
                False if expected_devices are devices that are set down
         """
         if is_up: