[pygobject/pygobject-2-28] [gi] Don't create variant twice
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-2-28] [gi] Don't create variant twice
- Date: Sat, 16 Apr 2011 14:40:49 +0000 (UTC)
commit 4643bcad5845f5ec3dd9961616e3ed3b0946001f
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Sat Apr 16 16:02:05 2011 +0200
[gi] Don't create variant twice
gi/overrides/GLib.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/overrides/GLib.py b/gi/overrides/GLib.py
index d3ce3e0..ad9f235 100644
--- a/gi/overrides/GLib.py
+++ b/gi/overrides/GLib.py
@@ -65,7 +65,7 @@ class _VariantCreator(object):
if not args:
raise TypeError('not enough arguments for GVariant format string')
v = constructor(args[0])
- return (constructor(args[0]), format[1:], args[1:])
+ return (v, format[1:], args[1:])
else:
return (None, format[1:], None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]