[pygobject] [gi] wrap the keyword argument in a dict so we don't break Python 2.5
- From: John Palmieri <johnp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] [gi] wrap the keyword argument in a dict so we don't break Python 2.5
- Date: Fri, 4 Mar 2011 16:13:36 +0000 (UTC)
commit 761dcb516a04f7a89b3c7d68e88fff23055e2a80
Author: John (J5) Palmieri <johnp redhat com>
Date: Thu Mar 3 18:39:16 2011 -0500
[gi] wrap the keyword argument in a dict so we don't break Python 2.5
* python < 2.6 does not allow sending in keyword litterals after sending in
*args. You can only send in **kwds.
gi/types.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/types.py b/gi/types.py
index 34d2549..9b250b1 100644
--- a/gi/types.py
+++ b/gi/types.py
@@ -52,7 +52,7 @@ def Function(info):
def NativeVFunc(info, cls):
def native_vfunc(*args):
- return info.invoke(*args, gtype=cls.__gtype__)
+ return info.invoke(*args, **dict(gtype=cls.__gtype__))
native_vfunc.__info__ = info
native_vfunc.__name__ = info.get_name()
native_vfunc.__module__ = info.get_namespace()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]