This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: ftplib raises exception if ssl module is not available
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.4
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: giampaolo.rodola Nosy List: giampaolo.rodola, python-dev, rkackley
Priority: normal Keywords: patch

Created on 2013-03-18 06:19 by rkackley, last changed 2022-04-11 14:57 by admin. This issue is now closed.

File name Uploaded Description Edit
ftplib.diff rkackley, 2013-03-18 06:19 review
Messages (3)
msg184429 - (view) Author: Russell Kackley (rkackley) * Date: 2013-03-18 06:19
On a system with no ssl module the following test failure occurs:

ERROR: test_dir (test.test_ftplib.TestFTPClass)
Traceback (most recent call last):
  File "/home/rkackley/Code/cpython/Lib/test/", line 598, in test_dir
    self.client.dir(lambda x: l.append(x))
  File "/home/rkackley/Code/cpython/Lib/", line 565, in dir
    self.retrlines(cmd, func)
  File "/home/rkackley/Code/cpython/Lib/", line 476, in retrlines
    if isinstance(conn, _SSLSocket):
TypeError: isinstance() arg 2 must be a type or tuple of types
msg184440 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-03-18 08:59
New changeset 0842c5411ed6 by Giampaolo Rodola' in branch 'default':
(issue 17452 / ftplib) fix TypeError occurring in case ssl module is not installed
msg184441 - (view) Author: Giampaolo Rodola' (giampaolo.rodola) * (Python committer) Date: 2013-03-18 09:22
Fixed, thanks.
Date User Action Args
2022-04-11 14:57:43adminsetgithub: 61654
2013-03-18 09:22:06giampaolo.rodolasetstatus: open -> closed
messages: + msg184441

assignee: giampaolo.rodola
resolution: fixed
stage: resolved
2013-03-18 08:59:27python-devsetnosy: + python-dev
messages: + msg184440
2013-03-18 06:19:27rkackleycreate