Skip to content

Commit

Permalink
some pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
boazhaim committed Nov 6, 2024
1 parent 65077ea commit f0fcadd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__(self, dump_path: Path) -> None:
self.directory = dump_path.parent
else:
raise FileNotFoundError(f"Could not use {dump_path}, make sure it exists and a tar")

def _get_files_from_tar(
self, opened_file: TarFile,
files_to_extract: Set[str],
Expand All @@ -49,7 +49,8 @@ def _get_files_from_tar(
full_dir_path = os.path.dirname(member.name)
parent_dir_name = os.path.basename(full_dir_path)
original_base_name = base_name
is_logs_with_dir_flag = parent_dir_name in logs_with_dirs and base_name in logs_with_dirs[parent_dir_name]
is_logs_with_dir_flag = parent_dir_name in logs_with_dirs and \
base_name in logs_with_dirs[parent_dir_name]
if base_name in single_log_name or \
parent_dir_name in directories_to_extract or \
is_logs_with_dir_flag:
Expand Down

0 comments on commit f0fcadd

Please sign in to comment.