ia64/xen-unstable

changeset 6995:fdc01adc11e0

Move definition of xc, to avoid confusing pylint.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Tue Sep 20 17:25:00 2005 +0100 (2005-09-20)
parents b54d922cb897
children 6d13fd586338
files tools/python/xen/xend/XendCheckpoint.py
line diff
     1.1 --- a/tools/python/xen/xend/XendCheckpoint.py	Tue Sep 20 17:24:27 2005 +0100
     1.2 +++ b/tools/python/xen/xend/XendCheckpoint.py	Tue Sep 20 17:25:00 2005 +0100
     1.3 @@ -4,7 +4,6 @@
     1.4  # Public License.  See the file "COPYING" in the main directory of
     1.5  # this archive for more details.
     1.6  
     1.7 -import errno
     1.8  import os
     1.9  import re
    1.10  import select
    1.11 @@ -12,7 +11,7 @@ import sxp
    1.12  from string import join
    1.13  from struct import pack, unpack, calcsize
    1.14  from xen.util.xpopen import xPopen3
    1.15 -import xen.lowlevel.xc; xc = xen.lowlevel.xc.new()
    1.16 +import xen.lowlevel.xc
    1.17  from xen.xend.xenstore.xsutil import IntroduceDomain
    1.18  
    1.19  from XendError import XendError
    1.20 @@ -25,6 +24,10 @@ PATH_XC_RESTORE = "/usr/libexec/xen/xc_r
    1.21  sizeof_int = calcsize("i")
    1.22  sizeof_unsigned_long = calcsize("L")
    1.23  
    1.24 +
    1.25 +xc = xen.lowlevel.xc.new()
    1.26 +
    1.27 +
    1.28  def write_exact(fd, buf, errmsg):
    1.29      if os.write(fd, buf) != len(buf):
    1.30          raise XendError(errmsg)