From 0f46ace8a95c6abddba0cc5b02504a5324f1586c Mon Sep 17 00:00:00 2001 From: zhufl Date: Fri, 14 Jun 2019 11:23:09 +0800 Subject: [PATCH] Fix :param: in docstring In docstring :param should be used instead of :param: Change-Id: I55cd3fc188dca4a357dbb599aa58ab4083d3baf5 --- swift/common/manager.py | 8 ++++---- swift/obj/reconstructor.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/swift/common/manager.py b/swift/common/manager.py index bd20bfbc24..978e2fbb6a 100644 --- a/swift/common/manager.py +++ b/swift/common/manager.py @@ -486,7 +486,7 @@ class Server(object): def conf_files(self, **kwargs): """Get conf files for this server - :param: number, if supplied will only lookup the nth server + :param number: if supplied will only lookup the nth server :returns: list of conf files """ @@ -550,7 +550,7 @@ class Server(object): def pid_files(self, **kwargs): """Get pid files for this server - :param: number, if supplied will only lookup the nth server + :param number: if supplied will only lookup the nth server :returns: list of pid files """ @@ -641,8 +641,8 @@ class Server(object): def status(self, pids=None, **kwargs): """Display status of server - :param: pids, if not supplied pids will be populated automatically - :param: number, if supplied will only lookup the nth server + :param pids: if not supplied pids will be populated automatically + :param number: if supplied will only lookup the nth server :returns: 1 if server is not running, 0 otherwise """ diff --git a/swift/obj/reconstructor.py b/swift/obj/reconstructor.py index 00baa04649..b8f18de4dc 100644 --- a/swift/obj/reconstructor.py +++ b/swift/obj/reconstructor.py @@ -706,7 +706,7 @@ class ObjectReconstructor(Daemon): local suffix's hashes to decide which suffixes (if any) are out of sync. - :param: the job dict, with the keys defined in ``_get_part_jobs`` + :param job: the job dict, with the keys defined in ``_get_part_jobs`` :param node: the remote node dict :returns: a (possibly empty) list of strings, the suffixes to be synced and the remote node. @@ -821,7 +821,7 @@ class ObjectReconstructor(Daemon): because each job will define a separate list of node(s) to 'sync_to'. - :param: the job dict, with the keys defined in ``_get_job_info`` + :param job: the job dict, with the keys defined in ``_get_job_info`` """ begin = time.time() if job['job_type'] == REVERT: