Skip to content

Commit 381a193

Browse files
committed
See if travis will let us get away with uniformly relative imports from the future. Sigh. Not making that up.
1 parent 9756630 commit 381a193

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

wllvm/as.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333

3434
from subprocess import *
3535

36-
from wllvm.utils import *
36+
from .utils import *
3737

38-
from wllvm.popenwrapper import Popen
38+
from .popenwrapper import Popen
3939

40-
from wllvm.arglistfilter import ArgumentListFilter
40+
from .arglistfilter import ArgumentListFilter
4141

4242
import logging
4343
logging.basicConfig()

wllvm/extractor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
that contains a section called __llvm_bc.
2121
2222
"""
23+
from __future__ import absolute_import
2324

2425
import sys
2526

26-
from extraction import *
27+
from .extraction import *
2728

2829
def main():
2930
try:

wllvm/wllvm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
linked into a library or executable.
1111
"""
1212

13+
from __future__ import absolute_import
1314

1415
import sys, os
1516

16-
from utils import getBuilder, buildObject, buildAndAttachBitcode, logging
17+
from .utils import getBuilder, buildObject, buildAndAttachBitcode, logging
1718

18-
import logconfig
19+
import .logconfig
1920

2021
_logger = logging.getLogger(__name__)
2122

wllvm/wllvmpp.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@
77
file so that it can be found later after all of the objects are linked
88
into a library or executable.
99
"""
10+
from __future__ import absolute_import
1011

1112
import sys, os
1213

13-
from utils import getBuilder, buildObject, buildAndAttachBitcode, logging
14+
from .utils import getBuilder, buildObject, buildAndAttachBitcode, logging
1415

15-
import logconfig
16+
import .logconfig
1617

1718
_logger = logging.getLogger(__name__)
1819

0 commit comments

Comments
 (0)