mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-24 08:13:36 +05:00
style: reformat code
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
@@ -41,9 +41,7 @@ class BackupManager:
|
||||
def ignore_folders(self, value: List[str]):
|
||||
self._ignore_folders = value
|
||||
|
||||
def backup_file(
|
||||
self, file: Path = None, target: Path = None, custom_filename=None
|
||||
):
|
||||
def backup_file(self, file: Path = None, target: Path = None, custom_filename=None):
|
||||
if not file:
|
||||
raise ValueError("Parameter 'file' cannot be None!")
|
||||
|
||||
@@ -84,7 +82,6 @@ class BackupManager:
|
||||
Logger.print_error(f"Unable to backup directory '{source}':\n{e}")
|
||||
return
|
||||
|
||||
|
||||
def ignore_folders_func(self, dirpath, filenames):
|
||||
return (
|
||||
[f for f in filenames if f in self._ignore_folders]
|
||||
|
||||
Reference in New Issue
Block a user