aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-07-24 14:43:00 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-07-24 14:43:00 -0300
commit0685eba5c59c0a761794f969abfa0a33202d55e4 (patch)
tree9c5a8b6bdc1cb3b7895d2c411f8ef74f6af28a81
parenta098fddfad9835544a4b4dd70669c1bc1afd049e (diff)
downloadfinder-0685eba5c59c0a761794f969abfa0a33202d55e4.tar.gz
finder-0685eba5c59c0a761794f969abfa0a33202d55e4.tar.bz2
Fix: plugin: opener: searcher: rename setPath to set_path
-rw-r--r--TODO.md2
-rw-r--r--packages/finder/plugin/searcher/file/name.py4
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 = []