changeset 309ec21b2b75 in /home/hg/repos/gajim
author: Emmanuel Gil Peyrot linkmauve@linkmauve.fr branches: details:http://hg.gajim.org/gajim?cmd=changeset;node=309ec21b2b75 description: Replace NameError SSL with correctly-imported OpenSSL.SSL.
diffstat:
src/common/socks5.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r 7a5772df6bec -r 309ec21b2b75 src/common/socks5.py --- a/src/common/socks5.py Sat Nov 05 15:06:08 2016 +0000 +++ b/src/common/socks5.py Sat Nov 05 15:07:08 2016 +0000 @@ -887,8 +887,8 @@ """ try: buff = self._recv().decode('utf-8') - except (SSL.WantReadError, SSL.WantWriteError, - SSL.WantX509LookupError) as e: + except (OpenSSL.SSL.WantReadError, OpenSSL.SSL.WantWriteError, + OpenSSL.SSL.WantX509LookupError) as e: log.info("SSL rehandshake request : " + repr(e)) raise e try: