From a47092b2f12fb2d48e5232ff6110a699947dfb14 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 7 Dec 2024 03:12:27 +0000 Subject: [PATCH] Fix formatting issues --- setHosts_Classic.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setHosts_Classic.py b/setHosts_Classic.py index 5cd3382..3517f31 100644 --- a/setHosts_Classic.py +++ b/setHosts_Classic.py @@ -953,9 +953,9 @@ def write_to_hosts_file(self, new_entries: List[str]): # 非标记块内容保留 if ( - not skip and - (line.startswith("#") or not line) and - not any(tag in line for tag in skip_tags) + not skip + and (line.startswith("#") or not line) + and not any(tag in line for tag in skip_tags) ): new_content.append(line) continue