fixed #4394 make the storage of the password optional in .pypirc

This commit is contained in:
Tarek Ziadé 2009-01-08 23:56:31 +00:00
parent 5b913e31a1
commit 1a240fb9f0
9 changed files with 172 additions and 75 deletions

View file

@ -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: