mirror of
https://github.com/python/cpython.git
synced 2025-09-14 04:37:29 +00:00
fixed #4394 make the storage of the password optional in .pypirc
This commit is contained in:
parent
5b913e31a1
commit
1a240fb9f0
9 changed files with 172 additions and 75 deletions
|
@ -82,12 +82,12 @@ class PyPIRCCommand(Command):
|
|||
for server in _servers:
|
||||
current = {'server': server}
|
||||
current['username'] = config.get(server, 'username')
|
||||
current['password'] = config.get(server, 'password')
|
||||
|
||||
# optional params
|
||||
for key, default in (('repository',
|
||||
self.DEFAULT_REPOSITORY),
|
||||
('realm', self.DEFAULT_REALM)):
|
||||
('realm', self.DEFAULT_REALM),
|
||||
('password', None)):
|
||||
if config.has_option(server, key):
|
||||
current[key] = config.get(server, key)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue