[glib] Try to make gobject.py work with both pythons



commit 7991178a752a22274950e54dc4f05b55ae54d756
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Jun 16 15:24:37 2014 -0400

    Try to make gobject.py work with both pythons
    
    This change was suggested on the fedora test list, and has been
    reported to work.

 gobject/gobject.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gobject.py b/gobject/gobject.py
index 32c0106..2311d6c 100644
--- a/gobject/gobject.py
+++ b/gobject/gobject.py
@@ -238,7 +238,7 @@ class GFrameDecorator:
                 return i
         return -1
 
-    def __next__ (self):
+    def next (self):
         # Ensure we have enough frames for a full signal emission
         self.fill()
 
@@ -274,6 +274,9 @@ class GFrameDecorator:
 
         return self.queue.pop(0)
 
+    def __next__ (self):
+        return self.next()
+
 class GFrameFilter(object):
     name = 'glib'
     enabled = True


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]