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] Tidy use of module / package names.

# HG changeset patch
# User emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID 52f80621b8899b2c464135ba14f70aff434e2470
# Parent  f72da879941828f54a5c592500b1c78938311979
Tidy use of module / package names.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r f72da8799418 -r 52f80621b889 tools/python/xen/lowlevel/xs/xs.c
--- a/tools/python/xen/lowlevel/xs/xs.c Mon Nov 21 16:48:22 2005
+++ b/tools/python/xen/lowlevel/xs/xs.c Mon Nov 21 17:34:25 2005
@@ -41,7 +41,8 @@
 #define PyMODINIT_FUNC DL_EXPORT(void)
 #endif
 
-#define PYPKG    "xen.lowlevel.xs"
+#define PKG "xen.lowlevel.xs"
+#define CLS "xs"
 
 /** Python wrapper round an xs handle.
  */
@@ -847,7 +848,7 @@
 static PyTypeObject xshandle_type = {
     PyObject_HEAD_INIT(NULL)
     0,
-    "xen.lowlevel.xs.xs",
+    PKG "." CLS,
     sizeof(XsHandle),
     0,
     (destructor)xshandle_dealloc, /* tp_dealloc        */
@@ -895,13 +896,13 @@
     if (PyType_Ready(&xshandle_type) < 0)
         return;
 
-    m = Py_InitModule("xen.lowlevel.xs", xs_methods);
+    m = Py_InitModule(PKG, xs_methods);
 
     if (m == NULL)
       return;
 
     Py_INCREF(&xshandle_type);
-    PyModule_AddObject(m, "xs", (PyObject *)&xshandle_type);
+    PyModule_AddObject(m, CLS, (PyObject *)&xshandle_type);
 }
 
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Tidy use of module / package names., Xen patchbot -unstable <=