Skip to content

Commit

Permalink
help: fix py3
Browse files Browse the repository at this point in the history
Regression introduced by #1459 (`dict.iteritems()` no longer exists in
Python 3; only `dict.items()` does, with the same internal behavior as
what `dict.iteritems()` did in Python 2)
  • Loading branch information
dgw committed Apr 25, 2019
1 parent a10c548 commit a212117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sopel/modules/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ def setup(bot):


def update_cache(bot):
for section, setting_names_list in help_track_settings.iteritems():
for section, setting_names_list in help_track_settings.items():
for setting_name in setting_names_list:
bot.memory[HELP_CACHE_NAMESPACE][section][setting_name] = getattr(getattr(bot.config, section), setting_name)


def is_cache_valid(bot):
for section, setting_names_list in help_track_settings.iteritems():
for section, setting_names_list in help_track_settings.items():
for setting_name in setting_names_list:
if bot.memory[HELP_CACHE_NAMESPACE][section][setting_name] != getattr(getattr(bot.config, section), setting_name):
return False
Expand Down

0 comments on commit a212117

Please sign in to comment.