summaryrefslogtreecommitdiff
path: root/config.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-07-22 12:50:05 +0000
committerTarek Ziadé <ziade.tarek@gmail.com>2010-07-22 12:50:05 +0000
commit07be936471d1459a64a755dc90a53121a8ca41e9 (patch)
treeb0006ca9f93d98c5246224cd42692528e4ee20d4 /config.py
parentb97dbcf42d529ab4dfb2896cef8c0d53960595d7 (diff)
downloadpython-setuptools-git-07be936471d1459a64a755dc90a53121a8ca41e9.tar.gz
reverted distutils its 3.1 state. All new work is now happening in disutils2, and distutils is now feature-frozen.
Diffstat (limited to 'config.py')
-rw-r--r--config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/config.py b/config.py
index fe41ce97..5b625f3f 100644
--- a/config.py
+++ b/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()