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

[python 3] Make imports absolute #60

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions fah/Client.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -21,6 +21,8 @@
# #
################################################################################

from __future__ import absolute_import

import socket
import select
import errno
Expand Down
4 changes: 3 additions & 1 deletion fah/FAHControl.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# #
################################################################################

from __future__ import absolute_import

import sys
import time
import re
Expand All @@ -34,7 +36,7 @@
import webbrowser
import shlex
import subprocess
from wraplabel import WrapLabel
from fah.wraplabel import WrapLabel

# OSX integration
if sys.platform == 'darwin':
Expand Down
2 changes: 2 additions & 0 deletions fah/Icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -19,6 +19,8 @@
# #
################################################################################

from __future__ import absolute_import

import gtk


Expand Down
22 changes: 12 additions & 10 deletions fah/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@

# fah

import db
import util
from __future__ import absolute_import

from Version import *
from Icon import *
from SlotConfig import *
from ClientConfig import *
from Connection import *
from Client import *
from WidgetMap import *
from FAHControl import *
import fah.db
import fah.util

from fah.Version import *
from fah.Icon import *
from fah.SlotConfig import *
from fah.ClientConfig import *
from fah.Connection import *
from fah.Client import *
from fah.WidgetMap import *
from fah.FAHControl import *
2 changes: 2 additions & 0 deletions fah/db/Column.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -19,6 +19,8 @@
# #
################################################################################

from __future__ import absolute_import

from fah.db import Column


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

# fah.db

from Column import *
from Table import *
from Database import *
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 @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -19,6 +19,8 @@
# #
################################################################################

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 @@ -20,6 +20,8 @@
################################################################################


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 @@ -19,6 +19,8 @@
# #
################################################################################

from __future__ import absolute_import

import sys
import socket
import threading
Expand Down
10 changes: 6 additions & 4 deletions fah/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,16 @@


# fah.util
from __future__ import absolute_import

import sys
import os
import gtk

from SingleApp import *
from EntryValidator import *
from PasswordValidator import *
from OrderedDict import *
from fah.util.SingleApp import *
from fah.util.EntryValidator import *
from fah.util.PasswordValidator import *
from fah.util.OrderedDict import *


def parse_bool(x):
Expand Down
2 changes: 2 additions & 0 deletions fah/wraplabel.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
# #
################################################################################

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