[pygobject] Correct Gtk.TreePath.__iter__ to work with Python 3
- From: Johan Dahlin <johan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Correct Gtk.TreePath.__iter__ to work with Python 3
- Date: Mon, 19 Mar 2012 15:04:25 +0000 (UTC)
commit 77d358f8c5f524259249ea686899e3a4da05562e
Author: Johan Dahlin <johan gnome org>
Date: Mon Mar 19 11:54:07 2012 -0300
Correct Gtk.TreePath.__iter__ to work with Python 3
gi/overrides/Gtk.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 1ce17af..9d3ba0a 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -1166,7 +1166,7 @@ class TreePath(Gtk.TreePath):
return other is None or self.compare(other) >= 0
def __iter__(self):
- return iter(map(int, str(self).split(':')))
+ return (int(part) for part in str(self).split(':'))
TreePath = override(TreePath)
__all__.append('TreePath')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]