summaryrefslogtreecommitdiff
path: root/Lib/distutils/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/config.py')
-rw-r--r--Lib/distutils/config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/config.py b/Lib/distutils/config.py
index bf8d8dd2f5..e66d103f7d 100644
--- a/Lib/distutils/config.py
+++ b/Lib/distutils/config.py
@@ -77,7 +77,7 @@ class PyPIRCCommand(Command):
# optional params
for key, default in (('repository',
self.DEFAULT_REPOSITORY),
- ('realm', self.DEFAULT_REALM),
+ ('realm', realm),
('password', None)):
if config.has_option(server, key):
current[key] = config.get(server, key)
@@ -106,7 +106,7 @@ class PyPIRCCommand(Command):
'password': config.get(server, 'password'),
'repository': repository,
'server': server,
- 'realm': self.DEFAULT_REALM}
+ 'realm': realm}
return {}