weechat-selfcensor

self-censor stuff you were going to say
git clone git://shroom.party/weechat-selfcensor.git
Log | Files | Refs | README | LICENSE

commit 60f5f74c0c18bf77525686fb01d1a7a15619fd5d
parent a5ebefe49c6a3ea428d854ceac45709d1522f4e0
Author: tx <trqx@goat.si>
Date:   Fri, 21 Sep 2018 17:48:14 +0200

replace iteritems() with items()

Thanks to Sébastien Helleu

Diffstat:
selfcensor.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/selfcensor.py b/selfcensor.py @@ -60,14 +60,14 @@ settings = {"censors": "", "warning": "🔥", "tourette": ""} if w.register( SCRIPT_NAME, SCRIPT_AUTHOR, SCRIPT_VERSION, SCRIPT_LICENSE, SCRIPT_DESC, "", "" ): - for option, default_value in settings.iteritems(): + for option, default_value in settings.items(): if not w.config_is_set_plugin(option): w.config_set_plugin(option, default_value) # Hooks we want to hook hook_command_run = {"input": ("/input return", "command_run_input")} # Hook all hooks ! - for hook, value in hook_command_run.iteritems(): + for hook, value in hook_command_run.items(): w.hook_command_run(value[0], value[1], "")