From e7992d894379d9c9565f722e09c4e0136c5f3ffd Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Thu, 25 May 2017 20:45:00 +0200 Subject: [PATCH] Change some docstrings --- src/manjaro_hello.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index b707417..56bcb49 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -249,6 +249,12 @@ class Hello(): def fix_path(path): + """Make good paths. + :param path: path to fix + :type path: str + :return: fixed path + :rtype: str + """ if "~" in path: path = path.replace("~", os.path.expanduser("~")) return path @@ -256,7 +262,7 @@ def fix_path(path): def read_json(path): """Read content of a json file. - :param path: path of file to read + :param path: path to read :type path: str :return: json content :rtype: str @@ -271,7 +277,7 @@ def read_json(path): def write_json(path, content): """Write content in a json file. - :param path: path of file to write + :param path: path to write :type path: str :param content: content to write :type path: str