Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

get_setupcfg_version might ignore setup.cfg values in some circumstances #56

@ceball

Description

@ceball

In converting from py3 to py2, I think I misread/didn't read the py2 docs:

 ConfigParser.get(section, option[, raw[, vars]])

    Get an option value for the named section. If vars is provided, it must be a dictionary. The option is looked up in vars (if provided), section, and in defaults in that order.

I think I used vars to supply a default if not present in section. Seems like I need to use a try/except NoOptionError instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions