Red Hat Bugzilla – Bug 500858
DeprecationWarning: socket.ssl() is deprecated.
Last modified: 2013-04-30 19:42:58 EDT
Description of problem:
There is annoying message written every time when I start offlineimap:
DeprecationWarning: socket.ssl() is deprecated. Use ssl.wrap_socket() instead.
Version-Release number of selected component (if applicable):
$ rpm -q offlineimap
Steps to Reproduce:
1. configure offlineimap to use ssl:
type = IMAP
remotehost = imap.gmail.com
remoteuser = email@example.com
ssl = yes
remoteport = 993
remotepass = XXX
2. run offlineimap
annoying msg is written
no deprecation warnings
Created attachment 344018 [details]
fix deprecation warning
This should fix.
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?
No, that patch doesn't work, warning is still printed. If I understand correctly DeprecationWarning says you should not use socket.ssl function.
Oh man, sorry that patch was meant the other way around. Could you please try patch -R?
Yes, reverse patch solves this issue.
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:
A patch has been sent upstream. Closing for now.