mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fix flake8-docstrings D400 First line should end with a period
This commit is contained in:
parent
1d7dba8aeb
commit
6f6c9bcc9d
3 changed files with 3 additions and 3 deletions
|
@ -138,7 +138,7 @@ class NTMRotatingLogHandler(object):
|
||||||
|
|
||||||
def _num_logs(self):
|
def _num_logs(self):
|
||||||
"""
|
"""
|
||||||
Scans the log folder and figures out how many log files there are already on disk
|
Scans the log folder and figures out how many log files there are already on disk.
|
||||||
|
|
||||||
Returns: The number of the last used file (eg. mylog.log.3 would return 3). If there are no logs it returns -1
|
Returns: The number of the last used file (eg. mylog.log.3 would return 3). If there are no logs it returns -1
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -88,7 +88,7 @@ def is_min_size(input_name, min_size):
|
||||||
|
|
||||||
|
|
||||||
def is_archive_file(filename):
|
def is_archive_file(filename):
|
||||||
"""Check if the filename is allowed for the Archive"""
|
"""Check if the filename is allowed for the Archive."""
|
||||||
for regext in core.COMPRESSED_CONTAINER:
|
for regext in core.COMPRESSED_CONTAINER:
|
||||||
if regext.search(filename):
|
if regext.search(filename):
|
||||||
return regext.split(filename)[0]
|
return regext.split(filename)[0]
|
||||||
|
|
|
@ -74,7 +74,7 @@ def get_dir_size(input_path):
|
||||||
|
|
||||||
|
|
||||||
def remove_empty_folders(path, remove_root=True):
|
def remove_empty_folders(path, remove_root=True):
|
||||||
"""Function to remove empty folders"""
|
"""Function to remove empty folders."""
|
||||||
if not os.path.isdir(path):
|
if not os.path.isdir(path):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue