Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lieryan committed Jan 6, 2024
1 parent 9d79c9a commit faa0b69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rope/contrib/autoimport/sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,7 @@ def filter_folders(folder: Path) -> bool:
return folder.is_dir() and folder.as_posix() != "/usr/bin"

folders = self.project.get_python_path_folders()
folder_paths = map(lambda folder: Path(folder.real_path), folders)
folder_paths = filter(filter_folders, folder_paths) # type:ignore
folder_paths = filter(filter_folders, map(Path, folders))
return list(OrderedDict.fromkeys(folder_paths))

def _safe_iterdir(self, folder: Path):
Expand Down

0 comments on commit faa0b69

Please sign in to comment.