summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/config.py')
-rw-r--r--Lib/distutils/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/config.py b/Lib/distutils/config.py
index fe41ce9..5b625f3 100644
--- a/Lib/distutils/config.py
+++ b/Lib/distutils/config.py
@@ -4,6 +4,7 @@ Provides the PyPIRCCommand class, the base class for the command classes
that uses .pypirc in the distutils.command package.
"""
import os
+import sys
from configparser import ConfigParser
from distutils.cmd import Command
@@ -59,6 +60,8 @@ class PyPIRCCommand(Command):
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 = ConfigParser()
config.read(rc)
sections = config.sections()