From 465375ab03fec677a04470f0422d440b1a818568 Mon Sep 17 00:00:00 2001 From: IsaacVRey Date: Wed, 3 Apr 2024 09:10:40 -0600 Subject: [PATCH] Standarize numpy style --- plugins/module_utils/file.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/plugins/module_utils/file.py b/plugins/module_utils/file.py index 336880b6f..757aebd1c 100644 --- a/plugins/module_utils/file.py +++ b/plugins/module_utils/file.py @@ -24,13 +24,13 @@ def _get_dir_mode(path): Parameters ---------- - path : str - The absolute path to retrieve directory mode from. + path : str + The absolute path to retrieve directory mode from. Returns ------- - int - The mode of the directory. + int + The mode of the directory. """ mask = S_IREAD | S_IWRITE if os.path.isdir(path): @@ -47,14 +47,14 @@ def make_dirs(path, mode_from=None): Parameters ---------- - path : str - The path to ensure subdirectories are created for. + path : str + The path to ensure subdirectories are created for. Keyword Parameters ------------------ - mode_from : str - Path to existing dir to retrieve the mode from. - Mode will be used for new directories. (default: {None}) + mode_from : str + Path to existing dir to retrieve the mode from. + Mode will be used for new directories. (default: {None}) """ mode = _get_dir_mode(mode_from) if mode_from is not None else S_IREAD | S_IWRITE if path[-1] == "/":