WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] xsm: Fix __import__() usage on Python 2.4

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] xsm: Fix __import__() usage on Python 2.4 and earlier.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 06 Sep 2008 01:40:13 -0700
Delivery-date: Sat, 06 Sep 2008 01:40:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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 <=