From 0685eba5c59c0a761794f969abfa0a33202d55e4 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 24 Jul 2024 14:43:00 -0300 Subject: Fix: plugin: opener: searcher: rename setPath to set_path --- TODO.md | 2 +- packages/finder/plugin/searcher/file/name.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/TODO.md b/TODO.md index bdbf21c..ba590d7 100644 --- a/TODO.md +++ b/TODO.md @@ -3,7 +3,7 @@ ## Improvements * [ ] Abstract/generalize plugin load logic. -* [ ] `FinderPluginFileNameSearcher.setPath`: check if path exists. +* [ ] `FinderPluginFileNameSearcher.set_path`: check if path exists. * [ ] `FinderPluginFileXdgOpener.open`: check if file actually exists (and if it's not a dead symbolic link etc). diff --git a/packages/finder/plugin/searcher/file/name.py b/packages/finder/plugin/searcher/file/name.py index 4388a70..9d02173 100644 --- a/packages/finder/plugin/searcher/file/name.py +++ b/packages/finder/plugin/searcher/file/name.py @@ -23,10 +23,10 @@ import re class FinderPluginFileNameSearcher(): def __init__(self, path): - self.setPath(path) + self.set_path(path) self.items = [] - def setPath(self, path): + def set_path(self, path): self.path = path self.items = [] -- cgit v1.2.3