]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
Always define _have_ns_fs_timestamps (True or False).
authorRob Browning <rlb@defaultvalue.org>
Fri, 12 Nov 2010 05:17:57 +0000 (23:17 -0600)
committerRob Browning <rlb@defaultvalue.org>
Fri, 12 Nov 2010 05:17:57 +0000 (23:17 -0600)
lib/bup/_helpers.c

index 30f11cf43be6e099d5ef57da94ab1c8b592ea19f..c4853ebdc1ca931edfcf1b839d77d0b29dda0ebb 100644 (file)
@@ -498,6 +498,10 @@ PyMODINIT_FUNC init_helpers(void)
                        Py_BuildValue("i", AT_SYMLINK_NOFOLLOW));
 #endif
 #ifdef HAVE_BUP_STAT
-    PyModule_AddObject(m, "_have_ns_fs_timestamps", Py_BuildValue("i", 1));
+    Py_INCREF(Py_True);
+    PyModule_AddObject(m, "_have_ns_fs_timestamps", Py_True);
+#else
+    Py_INCREF(Py_False);
+    PyModule_AddObject(m, "_have_ns_fs_timestamps", Py_False);
 #endif
 }