Skip to content

Commit 71bd588

Browse files
authored
bpo-32155: Revert distutils.config change (#4618)
Revert distutils changes of the commit 696b501 and remove the realm variable.
1 parent fe2d5ba commit 71bd588

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Lib/distutils/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ def _read_pypirc(self):
5151
if os.path.exists(rc):
5252
self.announce('Using PyPI login from %s' % rc)
5353
repository = self.repository or self.DEFAULT_REPOSITORY
54-
realm = self.realm or self.DEFAULT_REALM
5554

5655
config = RawConfigParser()
5756
config.read(rc)
@@ -77,7 +76,7 @@ def _read_pypirc(self):
7776
# optional params
7877
for key, default in (('repository',
7978
self.DEFAULT_REPOSITORY),
80-
('realm', realm),
79+
('realm', self.DEFAULT_REALM),
8180
('password', None)):
8281
if config.has_option(server, key):
8382
current[key] = config.get(server, key)
@@ -106,7 +105,7 @@ def _read_pypirc(self):
106105
'password': config.get(server, 'password'),
107106
'repository': repository,
108107
'server': server,
109-
'realm': realm}
108+
'realm': self.DEFAULT_REALM}
110109

111110
return {}
112111

Misc/NEWS.d/next/Library/2017-11-28-15-06-07.bpo-32155.hWHGww.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)