From fa3afbcac13e1aa3ae9cc2977dcb4cd882112f6f Mon Sep 17 00:00:00 2001 From: chenjiankun Date: Mon, 16 Jan 2017 09:17:48 +0000 Subject: Use """ to replace ''' in docstring JIRA: YARDSTICK-525 For consistency, we always use """triple double quotes""" around docstrings. Change-Id: I47a20bbd8b55bc544b4841ea4006929af0a044ac Signed-off-by: chenjiankun --- yardstick/common/template_format.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yardstick/common') diff --git a/yardstick/common/template_format.py b/yardstick/common/template_format.py index 2432c5dc6..e1662ced1 100644 --- a/yardstick/common/template_format.py +++ b/yardstick/common/template_format.py @@ -42,11 +42,11 @@ yaml_loader.add_constructor(u'tag:yaml.org,2002:timestamp', def parse(tmpl_str): - '''Takes a string and returns a dict containing the parsed structure. + """Takes a string and returns a dict containing the parsed structure. This includes determination of whether the string is using the JSON or YAML format. - ''' + """ if tmpl_str.startswith('{'): tpl = jsonutils.loads(tmpl_str) else: -- cgit 1.2.3-korg