summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-06-16 19:24:37 (GMT)
committerMatthias Clasen <mclasen@redhat.com>2014-06-16 19:25:42 (GMT)
commit7991178a752a22274950e54dc4f05b55ae54d756 (patch)
tree3e0b1d392d89ed1a3491924f483e0b9ddec8152b
parent9f69534030f963183ac5398889630a641a71409b (diff)
downloadglib-7991178a752a22274950e54dc4f05b55ae54d756.zip
glib-7991178a752a22274950e54dc4f05b55ae54d756.tar.xz
Try to make gobject.py work with both pythons
This change was suggested on the fedora test list, and has been reported to work.
-rw-r--r--gobject/gobject.py5
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