Bug 500858 - DeprecationWarning: socket.ssl() is deprecated.
Summary: DeprecationWarning: socket.ssl() is deprecated.
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: offlineimap
Version: 11
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Christoph Höger
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-14 15:12 UTC by Adam Tkac
Modified: 2013-04-30 23:42 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-06-27 14:30:09 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
fix deprecation warning (918 bytes, patch)
2009-05-14 17:40 UTC, Christoph Höger
no flags Details | Diff

Description Adam Tkac 2009-05-14 15:12:18 UTC
Description of problem:
There is annoying message written every time when I start offlineimap:

/usr/lib/python2.6/site-packages/offlineimap/imaplibutil.py:172:
DeprecationWarning: socket.ssl() is deprecated.  Use ssl.wrap_socket() instead.

Version-Release number of selected component (if applicable):
$ rpm -q offlineimap
offlineimap-6.0.3-3.fc11.noarch

How reproducible:
always

Steps to Reproduce:
1. configure offlineimap to use ssl:

[Repository remote-gmail]
type = IMAP
remotehost = imap.gmail.com
remoteuser = my_name
ssl = yes
remoteport = 993
remotepass = XXX

2. run offlineimap

Actual results:
annoying msg is written

Expected results:
no deprecation warnings

Additional info:
http://software.complete.org/software/issues/show/110

Comment 1 Christoph Höger 2009-05-14 17:40:52 UTC
Created attachment 344018 [details]
fix deprecation warning

This should fix.

Comment 2 Christoph Höger 2009-05-14 17:41:19 UTC
Hi,

thank you for reminding me on that. 
I've just sended a patch to upstream on that issue. 

I'll attach so you can test that out. Also there is a md5 deprecation I need to fix. I'll wait to see what upstream does with a new release. 

does it work for you?

Comment 3 Adam Tkac 2009-05-18 07:24:08 UTC
No, that patch doesn't work, warning is still printed. If I understand correctly DeprecationWarning says you should not use socket.ssl function.

Comment 4 Christoph Höger 2009-05-18 07:34:33 UTC
Oh man, sorry that patch was meant the other way around. Could you please try patch -R?

Comment 5 Adam Tkac 2009-05-18 09:54:32 UTC
Yes, reverse patch solves this issue.

Comment 6 Bug Zapper 2009-06-09 15:49:34 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 7 Christoph Höger 2009-06-27 14:30:09 UTC
A patch has been sent upstream. Closing for now.


Note You need to log in before you can comment on or make changes to this bug.