From 426993552c0c0a8d4ce4a347da18552f82638931 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 2 Jun 2024 23:05:34 +0800 Subject: [PATCH] some fix --- amalgamate.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/amalgamate.py b/amalgamate.py index 1962ed22..398b91e8 100644 --- a/amalgamate.py +++ b/amalgamate.py @@ -81,11 +81,7 @@ while True: text += h.content del headers[h.path] for h2 in headers.values(): - if h.path in h2.dependencies: - try: - h2.dependencies.remove(h.path) - except ValueError: - pass + h2.dependencies = [d for d in h2.dependencies if d != h.path] if os.path.exists("amalgamated"): shutil.rmtree("amalgamated")