[pygobject] Bug 590063 – GFileInfo.list_attributes should accept None/NULL



commit f1fad96da2c531fbd3218923baa4fe806a2942d4
Author: Gian Mario Tagliaretti <gianmt gnome org>
Date:   Sat Aug 8 21:37:54 2009 +0200

    Bug 590063 â?? GFileInfo.list_attributes should accept None/NULL

 gio/gfileinfo.override |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gfileinfo.override b/gio/gfileinfo.override
index 401a590..7643bf7 100644
--- a/gio/gfileinfo.override
+++ b/gio/gfileinfo.override
@@ -48,13 +48,13 @@ _wrap_g_file_info_list_attributes(PyGObject *self,
 				  PyObject  *kwargs)
 {
     char *kwlist[] = { "name_space", NULL};
-    gchar *name_space;
+    gchar *name_space = NULL;
     gchar **names;
     gchar **n;
     PyObject *ret;
     
     if (!PyArg_ParseTupleAndKeywords(args, kwargs,
-				     "s:gio.FileInfo.list_attributes",
+				     "|z:gio.FileInfo.list_attributes",
 				     kwlist, &name_space))
 	return NULL;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]