diff --git a/frappe/build.py b/frappe/build.py index 8d66846b57..af9bfce72d 100644 --- a/frappe/build.py +++ b/frappe/build.py @@ -418,7 +418,7 @@ def scrub_html_template(content): def html_to_js_template(path, content): - """Return HTML template content as Javascript code, by adding it to `frappe.templates`""" + """Return HTML template content as Javascript code, by adding it to `frappe.templates`.""" return """frappe.templates["{key}"] = '{content}';\n""".format( key=path.rsplit("/", 1)[-1][:-5], content=scrub_html_template(content) ) diff --git a/frappe/client.py b/frappe/client.py index 2d7e765564..028df862c4 100644 --- a/frappe/client.py +++ b/frappe/client.py @@ -354,7 +354,7 @@ def get_js(items): @frappe.whitelist(allow_guest=True) def get_time_zone(): - """Return the default time zone""" + """Return the default time zone.""" return {"time_zone": frappe.defaults.get_defaults().get("time_zone")}