summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-03-03 18:39:16 -0500
committerJohn (J5) Palmieri <johnp@redhat.com>2011-03-03 18:46:06 -0500
commite5aa7268c2a0fc285d60b30e135fd79d039b9ae5 (patch)
tree42d16f52e4eb8837ffc0cc3f30f42543e1d7dc13
parent79d03b40b2395874556860e7e39e0c607b6a676a (diff)
downloadpygobject-e5aa7268c2a0fc285d60b30e135fd79d039b9ae5.tar.gz
[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.
-rw-r--r--gi/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/types.py b/gi/types.py
index 34d25496..9b250b16 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()