From cf2835cf4013f8ee05f0a7092a70cc3d1c8d90f9 Mon Sep 17 00:00:00 2001 From: Matthew Harm Bekkema Date: Wed, 25 Mar 2020 19:50:26 +1100 Subject: [PATCH] from __future__ import absolute_import To prevent compatibility regressions as recommended by: https://docs.python.org/3/howto/pyporting.html#prevent-compatibility-regressions --- fah/Client.py | 2 ++ fah/ClientConfig.py | 2 ++ fah/Connection.py | 2 ++ fah/FAHControl.py | 2 ++ fah/Icon.py | 2 ++ fah/SlotConfig.py | 2 ++ fah/WidgetMap.py | 2 ++ fah/__init__.py | 2 ++ fah/db/Column.py | 2 ++ fah/db/Database.py | 2 ++ fah/db/Table.py | 2 ++ fah/db/__init__.py | 2 ++ fah/util/EntryValidator.py | 2 ++ fah/util/OrderedDict.py | 2 ++ fah/util/PasswordValidator.py | 2 ++ fah/util/SingleApp.py | 2 ++ fah/util/__init__.py | 2 ++ fah/wraplabel.py | 2 ++ setup.py | 2 ++ 19 files changed, 38 insertions(+) diff --git a/fah/Client.py b/fah/Client.py index 6197d221..cb52726f 100644 --- a/fah/Client.py +++ b/fah/Client.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import traceback import time import re diff --git a/fah/ClientConfig.py b/fah/ClientConfig.py index 1694203b..3a6a48ef 100644 --- a/fah/ClientConfig.py +++ b/fah/ClientConfig.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import sys import gtk import traceback diff --git a/fah/Connection.py b/fah/Connection.py index b50f8051..1665f177 100644 --- a/fah/Connection.py +++ b/fah/Connection.py @@ -21,6 +21,8 @@ # # ################################################################################ +from __future__ import absolute_import + import socket import select import errno diff --git a/fah/FAHControl.py b/fah/FAHControl.py index 915a87f9..d30ca9f4 100644 --- a/fah/FAHControl.py +++ b/fah/FAHControl.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import sys import time import re diff --git a/fah/Icon.py b/fah/Icon.py index 3de57f44..4fc78208 100644 --- a/fah/Icon.py +++ b/fah/Icon.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import gtk icons = {'tiny': None, 'small': None, 'medium': None, 'large': None} diff --git a/fah/SlotConfig.py b/fah/SlotConfig.py index 43c72501..97add0a9 100644 --- a/fah/SlotConfig.py +++ b/fah/SlotConfig.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import gtk import gobject import copy diff --git a/fah/WidgetMap.py b/fah/WidgetMap.py index ff85ac64..35cc711f 100644 --- a/fah/WidgetMap.py +++ b/fah/WidgetMap.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import gtk diff --git a/fah/__init__.py b/fah/__init__.py index a28bfa09..53dc238e 100644 --- a/fah/__init__.py +++ b/fah/__init__.py @@ -21,6 +21,8 @@ # fah +from __future__ import absolute_import + import fah.db import fah.util diff --git a/fah/db/Column.py b/fah/db/Column.py index 8e243d9c..32055137 100644 --- a/fah/db/Column.py +++ b/fah/db/Column.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + class Column: def __init__(self, name, dbType, constraits, auto = False): self.name = name diff --git a/fah/db/Database.py b/fah/db/Database.py index 2cd162bf..9fd02e13 100644 --- a/fah/db/Database.py +++ b/fah/db/Database.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + from fah.db import Column, Table import sqlite3 diff --git a/fah/db/Table.py b/fah/db/Table.py index 25102a95..7e880bf6 100644 --- a/fah/db/Table.py +++ b/fah/db/Table.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + from fah.db import Column diff --git a/fah/db/__init__.py b/fah/db/__init__.py index 3b80daec..5867f55d 100644 --- a/fah/db/__init__.py +++ b/fah/db/__init__.py @@ -21,6 +21,8 @@ # fah.db +from __future__ import absolute_import + from fah.db.Column import * from fah.db.Table import * from fah.db.Database import * diff --git a/fah/util/EntryValidator.py b/fah/util/EntryValidator.py index acf9c78f..80c55ecf 100644 --- a/fah/util/EntryValidator.py +++ b/fah/util/EntryValidator.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import gtk import re diff --git a/fah/util/OrderedDict.py b/fah/util/OrderedDict.py index 372d51cc..00837fe0 100644 --- a/fah/util/OrderedDict.py +++ b/fah/util/OrderedDict.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + from UserDict import DictMixin class OrderedDict(dict, DictMixin): diff --git a/fah/util/PasswordValidator.py b/fah/util/PasswordValidator.py index 6e52d935..c3922a1d 100644 --- a/fah/util/PasswordValidator.py +++ b/fah/util/PasswordValidator.py @@ -20,6 +20,8 @@ ################################################################################ +from __future__ import absolute_import + import gtk from fah.util.EntryValidator import EntryValidator diff --git a/fah/util/SingleApp.py b/fah/util/SingleApp.py index fb9a6c78..7fa1bc20 100644 --- a/fah/util/SingleApp.py +++ b/fah/util/SingleApp.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import sys import socket import threading diff --git a/fah/util/__init__.py b/fah/util/__init__.py index 07073163..e51d9316 100644 --- a/fah/util/__init__.py +++ b/fah/util/__init__.py @@ -21,6 +21,8 @@ # fah.util +from __future__ import absolute_import + import sys import os import gtk diff --git a/fah/wraplabel.py b/fah/wraplabel.py index 63fa9cd7..ac6a022c 100644 --- a/fah/wraplabel.py +++ b/fah/wraplabel.py @@ -19,6 +19,8 @@ # # ################################################################################ +from __future__ import absolute_import + import gtk import gobject import pango diff --git a/setup.py b/setup.py index 8c176630..2f2ec7e7 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import + import sys import os import inspect