diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 14:43:00 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2024-07-24 14:43:00 -0300 |
commit | 0685eba5c59c0a761794f969abfa0a33202d55e4 (patch) | |
tree | 9c5a8b6bdc1cb3b7895d2c411f8ef74f6af28a81 | |
parent | a098fddfad9835544a4b4dd70669c1bc1afd049e (diff) | |
download | finder-0685eba5c59c0a761794f969abfa0a33202d55e4.tar.gz finder-0685eba5c59c0a761794f969abfa0a33202d55e4.tar.bz2 |
Fix: plugin: opener: searcher: rename setPath to set_path
-rw-r--r-- | TODO.md | 2 | ||||
-rw-r--r-- | packages/finder/plugin/searcher/file/name.py | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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 = [] |