mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Move definition of xc variable, to save confusing pylint.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
This commit is contained in:
1 parent
8aee1a239f
commit
bf0102c5f3
1 file changed
+5
-1
@@ -22,7 +22,7 @@ import types
|
||||
from encode import *
|
||||
import sxp
|
||||
|
||||
from xen.xend import XendRoot; xroot = XendRoot.instance()
|
||||
from xen.xend import XendRoot
|
||||
|
||||
DEBUG = 0
|
||||
|
||||
@@ -31,6 +31,10 @@ HTTP_CREATED = 201
|
||||
HTTP_ACCEPTED = 202
|
||||
HTTP_NO_CONTENT = 204
|
||||
|
||||
|
||||
xroot = XendRoot.instance()
|
||||
|
||||
|
||||
class XendError(RuntimeError):
|
||||
"""Error class for 'expected errors' when talking to xend.
|
||||
"""
|
||||
|
||||