summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-04-08 14:15:10 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-04-08 14:15:10 +0000
commita9dbdaaf11f703ed609b5a5591c3de2e8bcfa4d4 (patch)
tree1e78dbe4fb967e06641a5b05f0f1f1e9592bc8de
parent98f1db3549f7dc056f892ceec3e81d9ee7285ce1 (diff)
downloadpygobject-a9dbdaaf11f703ed609b5a5591c3de2e8bcfa4d4.tar.gz
pygobject-a9dbdaaf11f703ed609b5a5591c3de2e8bcfa4d4.tar.xz
pygobject-a9dbdaaf11f703ed609b5a5591c3de2e8bcfa4d4.zip
Fix a couple of silly typos and use gio.File instead of GFile in
2008-04-08 Johan Dahlin <johan@gnome.org> * gio/gfile.override (_wrap__install_file_meta): Fix a couple of silly typos and use gio.File instead of GFile in exceptions. svn path=/trunk/; revision=765
-rw-r--r--ChangeLog5
-rw-r--r--gio/gfile.override15
2 files changed, 13 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index a4cf8b9..7b65231 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-04-08 Johan Dahlin <johan@gnome.org>
+
+ * gio/gfile.override (_wrap__install_file_meta): Fix a couple of
+ silly typos and use gio.File instead of GFile in exceptions.
+
2008-04-07 Johan Dahlin <johan@gnome.org>
* gio/__init__.py:
diff --git a/gio/gfile.override b/gio/gfile.override
index 96af9e0..e0280f4 100644
--- a/gio/gfile.override
+++ b/gio/gfile.override
@@ -46,32 +46,33 @@ _wrap__file_init(PyGObject *self, PyObject *args, PyObject *kwargs)
n_args = PyTuple_Size(args);
n_kwargs = kwargs != NULL ? PyDict_Size(kwargs) : 0;
+
if (n_args == 1 && n_kwargs == 0) {
if (!PyArg_ParseTuple(args, "s:GFile", &arg))
return NULL;
file = g_file_new_for_commandline_arg(arg);
} else if (n_args == 0 && n_kwargs == 1) {
if (PyDict_GetItemString(kwargs, "path")) {
- char *kwlist[] = { "uri", NULL };
+ char *kwlist[] = { "path", NULL };
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "s:GFile", kwlist, &arg))
+ "s:gio.File", kwlist, &arg))
return NULL;
file = g_file_new_for_path(arg);
} else if (PyDict_GetItemString(kwargs, "uri")) {
- char *kwlist[] = { "path", NULL };
+ char *kwlist[] = { "uri", NULL };
if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "s:GFile", kwlist, &arg))
+ "s:gio.File", kwlist, &arg))
return NULL;
file = g_file_new_for_uri(arg);
} else {
PyErr_Format(PyExc_TypeError,
- "GFile() got an unexpected keyword argument '%s'",
+ "gio.File() got an unexpected keyword argument '%s'",
"unknown");
return NULL;
}
- } else {
+ } else {
PyErr_Format(PyExc_TypeError,
- "GFile() takes exactly 1 argument (%d given)",
+ "gio.File() takes exactly 1 argument (%d given)",
n_args + n_kwargs);
return NULL;
}