Skip to content

Commit 86a8711

Browse files
committed
docstring
1 parent 6ea5860 commit 86a8711

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nodescraper/plugins/inband/dmesg/dmesg_collector.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,14 @@ def _shell_quote(self, s: str) -> str:
6060
return "'" + s.replace("'", "'\"'\"'") + "'"
6161

6262
def _nice_dmesg_name(self, path: str) -> str:
63-
"""Map path to filename"""
63+
"""Map path to filename
64+
65+
Args:
66+
path (str): file path
67+
68+
Returns:
69+
str: new local filename
70+
"""
6471
prefix = "rotated_"
6572
base = path.rstrip("/").rsplit("/", 1)[-1]
6673

0 commit comments

Comments
 (0)