Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use RawConfigParser to read .pypirc #186

Merged
merged 1 commit into from Jul 4, 2016
Merged

Conversation

ninz
Copy link
Contributor

@ninz ninz commented Jul 4, 2016

If password (for example) in .pypirc contains a %, ConfigParser will try to interpolate it and then raise an InterpolationSyntaxError. RawConfigParser will not attempt to interpolate % in strings. The .pypirc file is simple enough that it is unlikely to need the magic interpolation behaviour that ConfigParser provides. See https://docs.python.org/2/library/configparser.html#ConfigParser.RawConfigParser.

…ssword contains a % that should not be interpolated
@sigmavirus24 sigmavirus24 merged commit 1eef871 into pypa:master Jul 4, 2016
@sigmavirus24
Copy link
Member

Thanks @ninz!

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

Successfully merging this pull request may close these issues.

None yet

2 participants