summaryrefslogtreecommitdiff
path: root/poezio
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-02-13 19:18:26 +0100
committermathieui <mathieui@mathieui.net>2017-02-13 19:21:16 +0100
commit5e40b6303190471c32157e32d7ad53624a0f18d4 (patch)
tree6b76ae7d131477592182247d3b2327a03282d451 /poezio
parent1cc741c0c19c814de8c5bf581c380311432c8be4 (diff)
downloadpoezio-5e40b6303190471c32157e32d7ad53624a0f18d4.tar.gz
poezio-5e40b6303190471c32157e32d7ad53624a0f18d4.tar.bz2
poezio-5e40b6303190471c32157e32d7ad53624a0f18d4.tar.xz
poezio-5e40b6303190471c32157e32d7ad53624a0f18d4.zip
Don't require parameters for the ignored args wrapper
Diffstat (limited to 'poezio')
-rw-r--r--poezio/decorators.py2
-rw-r--r--poezio/tabs/xmltab.py6
2 files changed, 4 insertions, 4 deletions
diff --git a/poezio/decorators.py b/poezio/decorators.py
index 87c9910e..e824a8f1 100644
--- a/poezio/decorators.py
+++ b/poezio/decorators.py
@@ -63,7 +63,7 @@ class CommandArgParser(object):
"""
Call the function without any argument
"""
- def wrap(self, args, *a, **kw):
+ def wrap(self, args=None, *a, **kw):
return func(self, *a, **kw)
return wrap
diff --git a/poezio/tabs/xmltab.py b/poezio/tabs/xmltab.py
index e92df03a..5c7a8da7 100644
--- a/poezio/tabs/xmltab.py
+++ b/poezio/tabs/xmltab.py
@@ -167,7 +167,7 @@ class XMLTab(Tab):
self.refresh()
except Exception as e:
self.core.information('Invalid XML Mask: %s' % e, 'Error')
- self.command_filter_reset('')
+ self.command_filter_reset()
@command_args_parser.raw
def command_filter_to(self, jid):
@@ -216,7 +216,7 @@ class XMLTab(Tab):
self.refresh()
except:
self.core.information('Invalid XML Path', 'Error')
- self.command_filter_reset('')
+ self.command_filter_reset()
@command_args_parser.ignored
def command_filter_reset(self):
@@ -349,7 +349,7 @@ class XMLTab(Tab):
def on_close(self):
super().on_close()
- self.command_clear('')
+ self.command_clear()
self.core.xml_tab = False
def on_info_win_size_changed(self):