Skip to content

axolotl.py: is this python3? iteritems #549

Open
@emdee-is

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])

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