Skip to content

Commit

Permalink
Added relative imports where appropriate
Browse files Browse the repository at this point in the history
Python 3 does not accept implicit relative imports.
Making those explicit.
  • Loading branch information
claudep committed Aug 17, 2015
1 parent 192bc35 commit 810be1d
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion translate/search/indexing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import os
import shutil

import CommonIndexer
from . import CommonIndexer


""" TODO for indexing engines:
Expand Down
4 changes: 2 additions & 2 deletions translate/search/indexing/test_indexers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@

import pytest

import __init__ as indexing
import CommonIndexer
from .. import indexing
from . import CommonIndexer


# following block only needs running under pytest; unclear how to detect it?
Expand Down
28 changes: 14 additions & 14 deletions translate/storage/_factory_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@
just for the sake of the Windows installer to easily pick up all the stuff
that we need and ensure they make it into the installer."""

import catkeys
import csvl10n
import mo
import omegat
import po
import qm
import qph
import tbx
import tmx
import ts2
import utx
import wordfast
import xliff
from . import catkeys
from . import csvl10n
from . import mo
from . import omegat
from . import po
from . import qm
from . import qph
from . import tbx
from . import tmx
from . import ts2
from . import utx
from . import wordfast
from . import xliff

try:
import trados
from . import trados
except ImportError:
pass
16 changes: 8 additions & 8 deletions translate/storage/placeables/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@
Please refer to the XLIFF specification to get a better understanding.
"""

import base
import interfaces
import general
import xliff
from base import *
from base import __all__ as all_your_base
from strelem import StringElem
from parse import parse
from . import base
from . import interfaces
from . import general
from . import xliff
from .base import *
from .base import __all__ as all_your_base
from .strelem import StringElem
from .parse import parse


__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion translate/storage/xml_extract/test_xpath_breadcrumb.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#

import xpath_breadcrumb
from . import xpath_breadcrumb


def test_breadcrumb():
Expand Down

0 comments on commit 810be1d

Please sign in to comment.