[pyatspi2] Fix for bug #678497 - dict.iteritems() is no longer supported in Python 3



commit 66efd36c30398e8ef283ec8a1495b93f974e854a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jun 20 15:34:59 2012 -0400

    Fix for bug #678497 - dict.iteritems() is no longer supported in Python 3

 pyatspi/document.py |    2 +-
 pyatspi/text.py     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pyatspi/document.py b/pyatspi/document.py
index 8cb92e4..1ae2ddf 100644
--- a/pyatspi/document.py
+++ b/pyatspi/document.py
@@ -58,7 +58,7 @@ class Document:
                 as name-value pairs.
                 """
                 ret = Atspi.Document.get_attributes(self.obj)
-                return [key + ':' + value for key, value in ret.iteritems()]
+                return [key + ':' + value for key, value in ret.items()]
 
         def getLocale(self):
                 """
diff --git a/pyatspi/text.py b/pyatspi/text.py
index a7806f8..a065d77 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -288,7 +288,7 @@ class Text:
                 but which were not explicitly specified by the content creator.
                 """
                 ret = Atspi.Text.get_default_attributes(self.obj)
-                return ';'.join([key + ':' + value for key, value in ret.iteritems()])
+                return ';'.join([key + ':' + value for key, value in ret.items()])
 
         def getNSelections(self):
                 """



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