]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
python3: Sort list of exports
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 27 Nov 2013 22:51:09 +0000 (17:51 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Wed, 27 Nov 2013 22:51:09 +0000 (17:51 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/python-lxc/lxc.c

index de02d4b3863021929753730d939869d88f1ba897..8c863239e461449b899f669d1329cb630f732b3b 100644 (file)
@@ -1447,19 +1447,6 @@ PyInit__lxc(void)
     #define PYLXC_EXPORT_CONST(c) \
         PyDict_SetItemString(d, #c, PyLong_FromLong(c))
 
-    /* environment variable handling */
-    PYLXC_EXPORT_CONST(LXC_ATTACH_KEEP_ENV);
-    PYLXC_EXPORT_CONST(LXC_ATTACH_CLEAR_ENV);
-
-    /* attach options */
-    PYLXC_EXPORT_CONST(LXC_ATTACH_MOVE_TO_CGROUP);
-    PYLXC_EXPORT_CONST(LXC_ATTACH_DROP_CAPABILITIES);
-    PYLXC_EXPORT_CONST(LXC_ATTACH_SET_PERSONALITY);
-    PYLXC_EXPORT_CONST(LXC_ATTACH_LSM_NOW);
-    PYLXC_EXPORT_CONST(LXC_ATTACH_LSM_EXEC);
-    PYLXC_EXPORT_CONST(LXC_ATTACH_REMOUNT_PROC_SYS);
-    PYLXC_EXPORT_CONST(LXC_ATTACH_DEFAULT);
-
     /* namespace flags (no other python lib exports this) */
     PYLXC_EXPORT_CONST(CLONE_NEWUTS);
     PYLXC_EXPORT_CONST(CLONE_NEWIPC);
@@ -1468,6 +1455,19 @@ PyInit__lxc(void)
     PYLXC_EXPORT_CONST(CLONE_NEWNET);
     PYLXC_EXPORT_CONST(CLONE_NEWNS);
 
+    /* attach: environment variable handling */
+    PYLXC_EXPORT_CONST(LXC_ATTACH_CLEAR_ENV);
+    PYLXC_EXPORT_CONST(LXC_ATTACH_KEEP_ENV);
+
+    /* attach: attach options */
+    PYLXC_EXPORT_CONST(LXC_ATTACH_DEFAULT);
+    PYLXC_EXPORT_CONST(LXC_ATTACH_DROP_CAPABILITIES);
+    PYLXC_EXPORT_CONST(LXC_ATTACH_LSM_EXEC);
+    PYLXC_EXPORT_CONST(LXC_ATTACH_LSM_NOW);
+    PYLXC_EXPORT_CONST(LXC_ATTACH_MOVE_TO_CGROUP);
+    PYLXC_EXPORT_CONST(LXC_ATTACH_REMOUNT_PROC_SYS);
+    PYLXC_EXPORT_CONST(LXC_ATTACH_SET_PERSONALITY);
+
     #undef PYLXC_EXPORT_CONST
 
     return m;