Skip to content
This repository has been 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

Open
ceball opened this issue Jul 14, 2018 · 0 comments
Open

Comments

@ceball
Copy link
Contributor

ceball commented Jul 14, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant