[pyatspi2] Fix local imports for compatibility with Python 3



commit 93908aa7d6fbbdce456f7f257f00789121334f3b
Author: Mike Gorse <mgorse suse com>
Date:   Fri May 11 09:27:12 2012 -0500

    Fix local imports for compatibility with Python 3

 pyatspi/Accessibility.py |   18 +++++++++---------
 pyatspi/__init__.py      |    4 ++--
 pyatspi/constants.py     |    2 +-
 pyatspi/deviceevent.py   |    6 +++---
 pyatspi/document.py      |    2 +-
 pyatspi/editabletext.py  |    6 +++---
 pyatspi/role.py          |    2 +-
 pyatspi/state.py         |    2 +-
 pyatspi/text.py          |    4 ++--
 pyatspi/utils.py         |    8 ++++----
 10 files changed, 27 insertions(+), 27 deletions(-)
---
diff --git a/pyatspi/Accessibility.py b/pyatspi/Accessibility.py
index 928d566..7f24fbd 100644
--- a/pyatspi/Accessibility.py
+++ b/pyatspi/Accessibility.py
@@ -14,17 +14,17 @@
 
 from gi.repository import Atspi
 
-from registry import *
+from pyatspi.registry import *
 Registry = Registry()
 
-from constants import *
-from editabletext import *
-from role import *
-from state import *
-from text import *
-from document import *
-from utils import *
-from appevent import *
+from pyatspi.constants import *
+from pyatspi.editabletext import *
+from pyatspi.role import *
+from pyatspi.state import *
+from pyatspi.text import *
+from pyatspi.document import *
+from pyatspi.utils import *
+from pyatspi.appevent import *
 
 def Accessible_getitem(self, i):
         len=self.get_child_count()
diff --git a/pyatspi/__init__.py b/pyatspi/__init__.py
index 0bf00b6..7ec1642 100644
--- a/pyatspi/__init__.py
+++ b/pyatspi/__init__.py
@@ -16,10 +16,10 @@ __version__ = (1, 9, 0)
 
 from gi.repository import Atspi
 
-from Accessibility import *
+from pyatspi.Accessibility import *
 
 #This is a re-creation of the namespace pollution implemented
 #by PyORBit.
 import sys
-import Accessibility
+import pyatspi.Accessibility
 sys.modules['Accessibility'] = Accessibility
diff --git a/pyatspi/constants.py b/pyatspi/constants.py
index b793dcf..d9a2333 100644
--- a/pyatspi/constants.py
+++ b/pyatspi/constants.py
@@ -143,4 +143,4 @@ EVENT_TREE = {
     ['focus:']
 }
 
-from state import *
+from pyatspi.state import *
diff --git a/pyatspi/deviceevent.py b/pyatspi/deviceevent.py
index 72d066a..354e7f2 100644
--- a/pyatspi/deviceevent.py
+++ b/pyatspi/deviceevent.py
@@ -12,10 +12,10 @@
 #along with this program; if not, write to the Free Software
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-from interfaces import *
-import registry
+from pyatspi.interfaces import *
+import pyatspi.registry
 
-from enum import Enum as _Enum
+from pyatspi.enum import Enum as _Enum
 
 import traceback
 
diff --git a/pyatspi/document.py b/pyatspi/document.py
index e17590c..8cb92e4 100644
--- a/pyatspi/document.py
+++ b/pyatspi/document.py
@@ -14,7 +14,7 @@
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 from gi.repository import Atspi
-from utils import *
+from pyatspi.utils import *
 
 __all__ = [
            "Document",
diff --git a/pyatspi/editabletext.py b/pyatspi/editabletext.py
index b1f3108..cb4d736 100644
--- a/pyatspi/editabletext.py
+++ b/pyatspi/editabletext.py
@@ -12,10 +12,10 @@
 #along with this program; if not, write to the Free Software
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-from interfaces import *
-from text import *
+from pyatspi.interfaces import *
+from pyatspi.text import *
 from gi.repository import Atspi
-from utils import *
+from pyatspi.utils import *
 
 __all__ = [
            "EditableText",
diff --git a/pyatspi/role.py b/pyatspi/role.py
index fb44a5d..73d8fce 100644
--- a/pyatspi/role.py
+++ b/pyatspi/role.py
@@ -12,7 +12,7 @@
 #along with this program; if not, write to the Free Software
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-from enum import Enum as _Enum
+from pyatspi.enum import Enum as _Enum
 
 #------------------------------------------------------------------------------
 
diff --git a/pyatspi/state.py b/pyatspi/state.py
index d804150..8f13355 100644
--- a/pyatspi/state.py
+++ b/pyatspi/state.py
@@ -21,7 +21,7 @@
 
 from gi.repository import Atspi
 from gi.repository import GObject
-from enum import Enum as _Enum
+from pyatspi.enum import Enum as _Enum
 
 #------------------------------------------------------------------------------
 
diff --git a/pyatspi/text.py b/pyatspi/text.py
index 3375597..a7806f8 100644
--- a/pyatspi/text.py
+++ b/pyatspi/text.py
@@ -14,8 +14,8 @@
 #Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 from gi.repository import Atspi
-from enum import *
-from utils import *
+from pyatspi.enum import *
+from pyatspi.utils import *
 
 
 __all__ = [
diff --git a/pyatspi/utils.py b/pyatspi/utils.py
index f620c7b..d0fb2c1 100644
--- a/pyatspi/utils.py
+++ b/pyatspi/utils.py
@@ -19,10 +19,10 @@
 
 #authors: Peter Parente, Mark Doffman
 
-import Accessibility
-from deviceevent import allModifiers
-import state
-import registry
+import pyatspi.Accessibility
+from pyatspi.deviceevent import allModifiers
+import pyatspi.state
+import pyatspi.registry
 
 #from deviceevent import *
 



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