From a223ddce8be73f700f1e0cf811eea7b5cd970782 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 23 Aug 2024 11:41:43 -0700 Subject: [PATCH] fix: Remove unused imports and adjust code to use existing modules --- tests/basic/test_repomap.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/basic/test_repomap.py b/tests/basic/test_repomap.py index dbb2b81a2..11f644f0f 100644 --- a/tests/basic/test_repomap.py +++ b/tests/basic/test_repomap.py @@ -461,8 +461,6 @@ class TestRepoMapAllLanguages(unittest.TestCase): # Normalize path separators for Windows if os.name == "nt": # Check if running on Windows - import re - expected_map = re.sub( r"tests/fixtures/sample-code-base/([^:]+)", r"tests\\fixtures\\sample-code-base\\\1", @@ -477,8 +475,6 @@ class TestRepoMapAllLanguages(unittest.TestCase): # Compare the generated map with the expected map if generated_map_str != expected_map: # If they differ, show the differences and fail the test - import difflib - diff = list( difflib.unified_diff( expected_map.splitlines(),