|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xsm: Fix __import__() usage on Python 2.4
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1220525748 -3600
# Node ID 7d1eadfe463178b04e20a4a3e8dc28b87301849b
# Parent a5bf2535e7bb15ccfbe8110d6e4505a5e32a5200
xsm: Fix __import__() usage on Python 2.4 and earlier.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
tools/python/xen/util/xsm/xsm.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff -r a5bf2535e7bb -r 7d1eadfe4631 tools/python/xen/util/xsm/xsm.py
--- a/tools/python/xen/util/xsm/xsm.py Thu Sep 04 11:28:17 2008 +0100
+++ b/tools/python/xen/util/xsm/xsm.py Thu Sep 04 11:55:48 2008 +0100
@@ -7,10 +7,11 @@ xoptions = XendOptions.instance()
xoptions = XendOptions.instance()
xsm_module_name = xoptions.get_xsm_module_name()
-xsconstants.XS_POLICY_USE =
eval("xsconstants.XS_POLICY_"+string.upper(xsm_module_name))
+xsconstants.XS_POLICY_USE = eval("xsconstants.XS_POLICY_" +
+ string.upper(xsm_module_name))
xsm_module_path = "xen.util.xsm." + xsm_module_name + "." + xsm_module_name
-xsm_module = __import__(xsm_module_path, globals(), locals(), ['*'], -1)
+xsm_module = __import__(xsm_module_path, globals(), locals(), ['*'])
xsm_init(xsm_module)
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xsm: Fix __import__() usage on Python 2.4 and earlier.,
Xen patchbot-unstable <=
|
|
|
|
|