Move definition of xc, to avoid confusing pylint.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
emellor@ewan committed 2005-09-20 17:25:00 +01:00
1 parent 96df3030e7
commit f519344e5c
1 file changed
+5 -2
+5 -2
View File
@@ -4,7 +4,6 @@
# Public License. See the file "COPYING" in the main directory of
# this archive for more details.
import errno
import os
import re
import select
@@ -12,7 +11,7 @@ import sxp
from string import join
from struct import pack, unpack, calcsize
from xen.util.xpopen import xPopen3
import xen.lowlevel.xc; xc = xen.lowlevel.xc.new()
import xen.lowlevel.xc
from xen.xend.xenstore.xsutil import IntroduceDomain
from XendError import XendError
@@ -25,6 +24,10 @@ PATH_XC_RESTORE = "/usr/libexec/xen/xc_restore"
sizeof_int = calcsize("i")
sizeof_unsigned_long = calcsize("L")
xc = xen.lowlevel.xc.new()
def write_exact(fd, buf, errmsg):
if os.write(fd, buf) != len(buf):
raise XendError(errmsg)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.