Skip to content

in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined #51018

Closed

Description

@IvanK
mannequin
BPO 6769
Nosy @loewis, @kristjanvalur

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/kristjanvalur'
closed_at = <Date 2010-01-13.17:57:30.369>
created_at = <Date 2009-08-23.22:20:11.969>
labels = ['type-bug', 'library']
title = "in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined"
updated_at = <Date 2010-01-13.17:57:30.368>
user = 'https://bugs.python.org/ivank'

bugs.python.org fields:

activity = <Date 2010-01-13.17:57:30.368>
actor = 'kristjan.jonsson'
assignee = 'kristjan.jonsson'
closed = True
closed_date = <Date 2010-01-13.17:57:30.369>
closer = 'kristjan.jonsson'
components = ['Library (Lib)']
creation = <Date 2009-08-23.22:20:11.969>
creator = 'ivank'
dependencies = []
files = []
hgrepos = []
issue_num = 6769
keywords = []
message_count = 3.0
messages = ['91895', '91911', '91915']
nosy_count = 3.0
nosy_names = ['loewis', 'kristjan.jonsson', 'ivank']
pr_nums = []
priority = 'normal'
resolution = None
stage = None
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue6769'
versions = ['Python 2.7']

Activity

  1. IvanK commented on Aug 23, 2009

    IvanKmannequin
    MannequinAuthor

    Line 1491 of xmlrpclib.py should be

    self._connection = host, httplib.HTTPSConnection(chost, None, **(x509 or
    {}))

    instead of

    self._connection = host, HTTPSConnection(chost, None, **(x509 or {}))

    File
    "/opt/Python-latest/lib/python2.7/site-packages/bzrlib/plugins/launchpad/lp_registration.py",
    line 166, in send_request
    result = method(*method_params)
    File "/opt/Python-latest/lib/python2.7/xmlrpclib.py", line 1224, in
    __call__
    return self.__send(self.__name, args)
    File "/opt/Python-latest/lib/python2.7/xmlrpclib.py", line 1570, in
    __request
    verbose=self.__verbose
    File "/opt/Python-latest/lib/python2.7/xmlrpclib.py", line 1264, in
    request
    return self.single_request(host, handler, request_body, verbose)
    File "/opt/Python-latest/lib/python2.7/xmlrpclib.py", line 1284, in
    single_request
    h = self.make_connection(host)
    File "/opt/Python-latest/lib/python2.7/xmlrpclib.py", line 1491, in
    make_connection
    self._connection = host, HTTPSConnection(chost, None, **(x509 or {}))
    NameError: global name 'HTTPSConnection' is not defined

    bzr 1.15 on python 2.7a0 (linux2)

    I think this has been broken for around two weeks, maybe more. I don't
    know if this is broken in 3.x.

  2. added
    type-crashA hard crash of the interpreter, possibly with a core dump
    stdlibStandard Library Python modules in the Lib/ directory
    on Aug 23, 2009
  3. added
    type-bugAn unexpected behavior, bug, or error
    and removed
    type-crashA hard crash of the interpreter, possibly with a core dump
    on Aug 23, 2009
  4. loewis commented on Aug 24, 2009

    loewismannequin
    Mannequin

    Kristjan, can you take a look?

  5. kristjanvalur commented on Aug 24, 2009

    kristjanvalurmannequin
    Mannequin

    Thanks, that's a silly bug. fixed in revision 74543.
    Perhaps we need a https regression test in the test suite.

  6. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

stdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions