|
36 | 36 | from sopel.config import ConfigurationError |
37 | 37 | from sopel.irc import isupport |
38 | 38 | from sopel.irc.utils import CapReq, MyInfo |
39 | | -from sopel.tools import events, Identifier, iteritems, SopelMemory, target, web |
| 39 | +from sopel.tools import events, Identifier, SopelMemory, target, web |
40 | 40 |
|
41 | 41 |
|
42 | 42 | LOGGER = logging.getLogger(__name__) |
@@ -447,7 +447,7 @@ def handle_names(bot, trigger): |
447 | 447 |
|
448 | 448 | for name in names: |
449 | 449 | priv = 0 |
450 | | - for prefix, value in iteritems(mapping): |
| 450 | + for prefix, value in mapping.items(): |
451 | 451 | if prefix in name: |
452 | 452 | priv = priv | value |
453 | 453 | nick = Identifier(name.lstrip(''.join(mapping.keys()))) |
@@ -915,7 +915,7 @@ def acct_warn(bot, cap): |
915 | 915 | if cap not in bot._cap_reqs: |
916 | 916 | bot._cap_reqs[cap] = [CapReq('', 'coretasks', acct_warn)] |
917 | 917 |
|
918 | | - for cap, reqs in iteritems(bot._cap_reqs): |
| 918 | + for cap, reqs in bot._cap_reqs.items(): |
919 | 919 | # At this point, we know mandatory and prohibited don't co-exist, but |
920 | 920 | # we need to call back for optionals if they're also prohibited |
921 | 921 | prefix = '' |
|
0 commit comments