Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
from __future__ import absolute_import
Browse files Browse the repository at this point in the history
To prevent compatibility regressions as recommended by:
https://docs.python.org/3/howto/pyporting.html#prevent-compatibility-regressions
  • Loading branch information
mat8913 committed Mar 25, 2020
1 parent 1000edd commit bcd3192
Show file tree
Hide file tree
Showing 19 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fah/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import traceback
import time
import re
Expand Down
2 changes: 2 additions & 0 deletions fah/ClientConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import sys
import gtk
import traceback
Expand Down
2 changes: 2 additions & 0 deletions fah/Connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import socket
import select
import errno
Expand Down
2 changes: 2 additions & 0 deletions fah/FAHControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import sys
import time
import re
Expand Down
2 changes: 2 additions & 0 deletions fah/Icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import gtk

icons = {'tiny': None, 'small': None, 'medium': None, 'large': None}
Expand Down
2 changes: 2 additions & 0 deletions fah/SlotConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import gtk
import gobject
import copy
Expand Down
2 changes: 2 additions & 0 deletions fah/WidgetMap.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import gtk


Expand Down
2 changes: 2 additions & 0 deletions fah/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

# fah

from __future__ import absolute_import

import fah.db
import fah.util

Expand Down
2 changes: 2 additions & 0 deletions fah/db/Column.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

class Column:
def __init__(self, name, dbType, constraits, auto = False):
self.name = name
Expand Down
2 changes: 2 additions & 0 deletions fah/db/Database.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

from fah.db import Column, Table

import sqlite3
Expand Down
2 changes: 2 additions & 0 deletions fah/db/Table.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

from fah.db import Column


Expand Down
2 changes: 2 additions & 0 deletions fah/db/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

# fah.db

from __future__ import absolute_import

from fah.db.Column import *
from fah.db.Table import *
from fah.db.Database import *
2 changes: 2 additions & 0 deletions fah/util/EntryValidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import gtk
import re

Expand Down
2 changes: 2 additions & 0 deletions fah/util/OrderedDict.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

from UserDict import DictMixin

class OrderedDict(dict, DictMixin):
Expand Down
2 changes: 2 additions & 0 deletions fah/util/PasswordValidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import gtk

from fah.util.EntryValidator import EntryValidator
Expand Down
2 changes: 2 additions & 0 deletions fah/util/SingleApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''

from __future__ import absolute_import

import sys
import socket
import threading
Expand Down
2 changes: 2 additions & 0 deletions fah/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
'''

# fah.util
from __future__ import absolute_import

import sys
import os
import gtk
Expand Down
2 changes: 2 additions & 0 deletions fah/wraplabel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

import gtk
import gobject
import pango
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import absolute_import

import sys
import os
import inspect
Expand Down

0 comments on commit bcd3192

Please sign in to comment.