if os.path.exists(rc):
self.announce('Using PyPI login from %s' % rc)
repository = self.repository or self.DEFAULT_REPOSITORY
- realm = self.realm or self.DEFAULT_REALM
config = RawConfigParser()
config.read(rc)
# optional params
for key, default in (('repository',
self.DEFAULT_REPOSITORY),
- ('realm', realm),
+ ('realm', self.DEFAULT_REALM),
('password', None)):
if config.has_option(server, key):
current[key] = config.get(server, key)
'password': config.get(server, 'password'),
'repository': repository,
'server': server,
- 'realm': realm}
+ 'realm': self.DEFAULT_REALM}
return {}