Skip to content

Commit

Permalink
bpo-32155: Revert distutils.config change (#4618)
Browse files Browse the repository at this point in the history
Revert distutils changes of the commit
696b501 and remove the realm
variable.
  • Loading branch information
vstinner committed Nov 28, 2017
1 parent fe2d5ba commit 71bd588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Lib/distutils/config.py
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.

0 comments on commit 71bd588

Please sign in to comment.