'Load from ~/.pypirc'

def __init__(self):

    defaults = dict.fromkeys(['username', 'password', 'repository'], '')
    ConfigParser.ConfigParser.__init__(self, defaults)
    rc = os.path.join(os.path.expanduser('~'), '.pypirc')
    if os.path.exists(rc):
        self.read(rc)
