From f0dd79895dd637bf142799eff3ab72201165ab8e Mon Sep 17 00:00:00 2001 From: "ChangBo Guo(gcb)" Date: Thu, 3 Apr 2014 17:40:36 +0800 Subject: [PATCH] Remove rendundant parentheses of cfg help strings There is a hacking review https://review.openstack.org/#/c/74493/. That makes me be aware we maybe have rendunant parentheses. We'd better clean the parentheses, Python will handle that well. Change-Id: I275aaa49450d8088d93b3e19138850c359a4abae --- openstack/common/lockutils.py | 2 +- openstack/common/periodic_task.py | 4 ++-- openstack/common/rpc/impl_kombu.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openstack/common/lockutils.py b/openstack/common/lockutils.py index 684db3420..f7659a6ba 100644 --- a/openstack/common/lockutils.py +++ b/openstack/common/lockutils.py @@ -41,7 +41,7 @@ util_opts = [ help='Whether to disable inter-process locks'), cfg.StrOpt('lock_path', default=os.environ.get("OSLO_LOCK_PATH"), - help=('Directory to use for lock files.')) + help='Directory to use for lock files.') ] diff --git a/openstack/common/periodic_task.py b/openstack/common/periodic_task.py index 190971c40..aaaec091c 100644 --- a/openstack/common/periodic_task.py +++ b/openstack/common/periodic_task.py @@ -23,8 +23,8 @@ from openstack.common import log as logging periodic_opts = [ cfg.BoolOpt('run_external_periodic_tasks', default=True, - help=('Some periodic tasks can be run in a separate process. ' - 'Should we run them here?')), + help='Some periodic tasks can be run in a separate process. ' + 'Should we run them here?'), ] CONF = cfg.CONF diff --git a/openstack/common/rpc/impl_kombu.py b/openstack/common/rpc/impl_kombu.py index 32f2a85f4..2b23cf8a4 100644 --- a/openstack/common/rpc/impl_kombu.py +++ b/openstack/common/rpc/impl_kombu.py @@ -50,8 +50,8 @@ kombu_opts = [ help='SSL cert file (valid only if SSL enabled)'), cfg.StrOpt('kombu_ssl_ca_certs', default='', - help=('SSL certification authority file ' - '(valid only if SSL enabled)')), + help='SSL certification authority file ' + '(valid only if SSL enabled)'), cfg.StrOpt('rabbit_host', default='localhost', help='The RabbitMQ broker address where a single node is used'),