Skip to content

axolotl.py: is this python3? iteritems #549

Description

@emdee-is

Is axolotl.py python3 ? iteritems is python2 only.

        for option, default_value in script_options.iteritems():
            if not weechat.config_is_set_plugin(option):
                weechat.config_set_plugin(option, default_value)

My suggestion is:


        for option in script_options:
            if not weechat.config_is_set_plugin(option):
                weechat.config_set_plugin(option, script_options[option])

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions