debuggers.hg
changeset 17615:ab2d9e75098d
xend: Only import OpenSSL package when it is required.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue May 06 15:31:15 2008 +0100 (2008-05-06) |
parents | a3bddc22d2f5 |
children | a95c2e36d6fd |
files | tools/python/xen/web/tcp.py |
line diff
1.1 --- a/tools/python/xen/web/tcp.py Tue May 06 13:34:52 2008 +0100 1.2 +++ b/tools/python/xen/web/tcp.py Tue May 06 15:31:15 2008 +0100 1.3 @@ -22,8 +22,6 @@ import re 1.4 import socket 1.5 import time 1.6 1.7 -from OpenSSL import SSL 1.8 - 1.9 import connection 1.10 1.11 from xen.xend.XendLogging import log 1.12 @@ -82,6 +80,7 @@ class SSLTCPListener(TCPListener): 1.13 1.14 1.15 def createSocket(self): 1.16 + from OpenSSL import SSL 1.17 # make a SSL socket 1.18 ctx = SSL.Context(SSL.SSLv23_METHOD) 1.19 ctx.set_options(SSL.OP_NO_SSLv2)