[pygobject/pygobject-2-28] [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/pygobject-2-28] [gi] wrap the keyword argument in a dict so we don't break Python 2.5
- Date: Thu, 3 Mar 2011 23:47:59 +0000 (UTC)
commit e5aa7268c2a0fc285d60b30e135fd79d039b9ae5
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]