Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Lib/distutils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ def _read_pypirc(self):
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)
Expand All @@ -77,7 +76,7 @@ def _read_pypirc(self):
# 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)
Expand Down Expand Up @@ -106,7 +105,7 @@ def _read_pypirc(self):
'password': config.get(server, 'password'),
'repository': repository,
'server': server,
'realm': realm}
'realm': self.DEFAULT_REALM}

return {}

Expand Down

This file was deleted.