summaryrefslogtreecommitdiff
path: root/poezio/core/commands.py
diff options
context:
space:
mode:
authorMaxime Buquet <pep@bouah.net>2020-05-31 03:57:12 +0200
committerMaxime Buquet <pep@bouah.net>2020-05-31 03:57:12 +0200
commitfe9992e3e8377896260ce1a92e4abb96cf1e8a01 (patch)
treec5aadc2086bdd9cdac29b37955e6f85144d93a34 /poezio/core/commands.py
parentce9d59f19e2a4b2150de66bee1159931158e8009 (diff)
parent6deb6ff39157006a3a9e86047a6f5c5e1421a4d4 (diff)
downloadpoezio-fe9992e3e8377896260ce1a92e4abb96cf1e8a01.tar.gz
poezio-fe9992e3e8377896260ce1a92e4abb96cf1e8a01.tar.bz2
poezio-fe9992e3e8377896260ce1a92e4abb96cf1e8a01.tar.xz
poezio-fe9992e3e8377896260ce1a92e4abb96cf1e8a01.zip
Merge branch 'revert-types' into 'master'
Revert "Bookmarks: type bookmark method (local/remote)" See merge request poezio/poezio!140
Diffstat (limited to 'poezio/core/commands.py')
-rw-r--r--poezio/core/commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index 98acef32..6fc800ae 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -18,7 +18,7 @@ from poezio import common
from poezio import pep
from poezio import tabs
from poezio import multiuserchat as muc
-from poezio.bookmarks import Bookmark, Method as BookmarkMethod
+from poezio.bookmarks import Bookmark
from poezio.common import safeJID
from poezio.config import config, DEFAULT_CONFIG, options as config_opts
from poezio.contact import Contact, Resource
@@ -444,7 +444,7 @@ class CommandCore:
self._add_bookmark(jid, autojoin, password, 'remote')
- def _add_bookmark(self, jid: str, autojoin: bool, password: str, method: BookmarkMethod) -> None:
+ def _add_bookmark(self, jid, autojoin, password, method):
nick = None
if not jid:
tab = self.core.tabs.current_tab
@@ -478,7 +478,7 @@ class CommandCore:
self.core.bookmarks.save_remote(self.core.xmpp,
self.core.handler.on_bookmark_result)
- def _add_wildcard_bookmarks(self, method: BookmarkMethod):
+ def _add_wildcard_bookmarks(self, method):
new_bookmarks = []
for tab in self.core.get_tabs(tabs.MucTab):
bookmark = self.core.bookmarks[tab.jid.bare]