Commit 12aeb938 authored by Sébastien Helleu's avatar Sébastien Helleu

bitlbee_typing_notice.py 0.7: remove useless list() around .items()

parent 2c029c7b
......@@ -21,6 +21,8 @@
# (this script requires WeeChat 0.3.6 or newer)
#
# History:
# 2020-05-10, Sébastien Helleu <[email protected]>
# version 0.7: remove useless list() around .items()
# 2020-04-15, Corey Halpin <[email protected]>
# version 0.6:
# * Update for python3, fixing issues pointed out by 2to3.
......@@ -69,7 +71,7 @@ import re
SCRIPT_NAME = "bitlbee_typing_notice"
SCRIPT_AUTHOR = "Alexander Schremmer <[email protected]>"
SCRIPT_VERSION = "0.6"
SCRIPT_VERSION = "0.7"
SCRIPT_LICENSE = "GPL3"
SCRIPT_DESC = "Sends and displays bitlbee typing notices."
......@@ -183,7 +185,7 @@ def send_typing(nick, level):
def typing_notice_item_cb(data, buffer, args):
if typing:
msgs = []
for key, value in list(typing.items()):
for key, value in typing.items():
msg = key
if value == 2:
msg += " (stale)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment