debuggers.hg
changeset 6965:b67ef34cf91b
Move definition of xc and xend to avoid confusing pylint.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Signed-off-by: Ewan Mellor <ewan@xensource.com>
author | emellor@ewan |
---|---|
date | Sun Sep 18 16:00:24 2005 +0100 (2005-09-18) |
parents | 5007bebba2f5 |
children | 3dec22f380be |
files | tools/python/xen/xend/XendDomainInfo.py |
line diff
1.1 --- a/tools/python/xen/xend/XendDomainInfo.py Sun Sep 18 15:50:12 2005 +0100 1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py Sun Sep 18 16:00:24 2005 +0100 1.3 @@ -28,10 +28,10 @@ import time 1.4 import threading 1.5 import errno 1.6 1.7 -import xen.lowlevel.xc; xc = xen.lowlevel.xc.new() 1.8 +import xen.lowlevel.xc 1.9 from xen.util.blkif import blkdev_uname_to_file 1.10 1.11 -from xen.xend.server import SrvDaemon; xend = SrvDaemon.instance() 1.12 +from xen.xend.server import SrvDaemon 1.13 from xen.xend.server.channel import EventChannel 1.14 1.15 from xen.xend import sxp 1.16 @@ -93,6 +93,12 @@ SIF_NET_BE_DOMAIN = (1<<5) 1.17 SIF_TPM_BE_DOMAIN = (1<<7) 1.18 1.19 1.20 +xc = xen.lowlevel.xc.new() 1.21 + 1.22 + 1.23 +xend = SrvDaemon.instance() 1.24 + 1.25 + 1.26 def domain_exists(name): 1.27 # See comment in XendDomain constructor. 1.28 xd = get_component('xen.xend.XendDomain')