mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
reverted distutils its 3.1 state. All new work is now happening in disutils2, and distutils is now feature-frozen.
This commit is contained in:
parent
5db0c94072
commit
3679727939
64 changed files with 1626 additions and 1678 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue