[pygobject] [gi] Don't create variant twice



commit 05c766044c83340c44564d0097514bfc1d1d9df7
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]