summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/config.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-01-08 23:56:31 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-01-08 23:56:31 (GMT)
commit1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc (patch)
treef60ab4380cf7de758fda0994eb9c0071e489f041 /Lib/distutils/config.py
parent5b913e31a1cbcea7807fca4cc272079039a3bd67 (diff)
downloadcpython-1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc.zip
cpython-1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc.tar.gz
cpython-1a240fb9f038839f0e6f157ce4c7fcbcbf777ebc.tar.bz2
fixed #4394 make the storage of the password optional in .pypirc
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 4186c9b..9166199 100644
--- a/Lib/distutils/config.py
+++ b/Lib/distutils/config.py
@@ -82,12 +82,12 @@ class PyPIRCCommand(Command):
for server in _servers:
current = {'server': server}
current['username'] = config.get(server, 'username')
- current['password'] = config.get(server, 'password')
# optional params
for key, default in (('repository',
self.DEFAULT_REPOSITORY),
- ('realm', self.DEFAULT_REALM)):
+ ('realm', self.DEFAULT_REALM),
+ ('password', None)):
if config.has_option(server, key):
current[key] = config.get(server, key)
else: