aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2018-04-02 14:46:39 +0300
committerFilipp Lepalaan <filipp@mac.com>2018-04-02 14:46:39 +0300
commit741f3329ebf600dc2c0c65c4383b8436fe54bac7 (patch)
treea8e3746d5f1f48bdc7f1a84a8bfc61afe60f98e6
parentb3a12679f2d2e1d02d5378221c514f905242de6c (diff)
downloadpy-gsxws-741f3329ebf600dc2c0c65c4383b8436fe54bac7.tar.gz
py-gsxws-741f3329ebf600dc2c0c65c4383b8436fe54bac7.tar.bz2
py-gsxws-741f3329ebf600dc2c0c65c4383b8436fe54bac7.zip
Fix imports
-rw-r--r--gsxws/comms.py4
-rw-r--r--gsxws/diagnostics.py2
-rw-r--r--gsxws/escalations.py4
-rw-r--r--gsxws/lookups.py2
-rw-r--r--gsxws/orders.py4
-rw-r--r--gsxws/repairs.py6
-rw-r--r--gsxws/returns.py4
7 files changed, 13 insertions, 13 deletions
diff --git a/gsxws/comms.py b/gsxws/comms.py
index dc37e9b..3ff1ac3 100644
--- a/gsxws/comms.py
+++ b/gsxws/comms.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from core import GsxObject
+from .core import GsxObject
class Communication(GsxObject):
@@ -49,7 +49,7 @@ def ack(id, status):
if __name__ == '__main__':
import sys
import doctest
- from core import connect
+ from .core import connect
logging.basicConfig(level=logging.DEBUG)
connect(*sys.argv[1:4])
doctest.testmod()
diff --git a/gsxws/diagnostics.py b/gsxws/diagnostics.py
index f1815e7..2ad1e8c 100644
--- a/gsxws/diagnostics.py
+++ b/gsxws/diagnostics.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from core import GsxObject, GsxError
+from .core import GsxObject, GsxError
class Diagnostics(GsxObject):
diff --git a/gsxws/escalations.py b/gsxws/escalations.py
index 70f7732..6a1ffbb 100644
--- a/gsxws/escalations.py
+++ b/gsxws/escalations.py
@@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
import os.path
-from core import GsxObject
-from lookups import Lookup
+from .core import GsxObject
+from .lookups import Lookup
STATUS_OPEN = 'O'
STATUS_CLOSED = 'C'
diff --git a/gsxws/lookups.py b/gsxws/lookups.py
index 6a91e90..e71ff40 100644
--- a/gsxws/lookups.py
+++ b/gsxws/lookups.py
@@ -5,7 +5,7 @@ import logging
import tempfile
from datetime import date
-from core import GsxObject, connect
+from .core import GsxObject, connect
class Lookup(GsxObject):
diff --git a/gsxws/orders.py b/gsxws/orders.py
index c06a073..685e038 100644
--- a/gsxws/orders.py
+++ b/gsxws/orders.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from core import GsxObject
+from .core import GsxObject
class OrderLine(GsxObject):
@@ -63,7 +63,7 @@ if __name__ == '__main__':
import sys
import doctest
import logging
- from core import connect
+ from .core import connect
logging.basicConfig(level=logging.DEBUG)
connect(*sys.argv[1:5])
doctest.testmod()
diff --git a/gsxws/repairs.py b/gsxws/repairs.py
index 0bea2bd..0252a0a 100644
--- a/gsxws/repairs.py
+++ b/gsxws/repairs.py
@@ -4,8 +4,8 @@
import sys
import logging
-from core import GsxObject, GsxError, validate
-from lookups import Lookup
+from .core import GsxObject, GsxError, validate
+from .lookups import Lookup
REPAIR_TYPES = (
('CA', 'Carry-In/Non-Replinished'),
@@ -389,7 +389,7 @@ class MailInRepair(Repair):
if __name__ == '__main__':
import doctest
- from core import connect
+ from .core import connect
logging.basicConfig(level=logging.DEBUG)
connect(*sys.argv[1:])
doctest.testmod()
diff --git a/gsxws/returns.py b/gsxws/returns.py
index 2789942..c14ed35 100644
--- a/gsxws/returns.py
+++ b/gsxws/returns.py
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
-from core import GsxObject, validate
+from .core import GsxObject, validate
RETURN_TYPES = (
(1, "Dead On Arrival"),
@@ -131,7 +131,7 @@ if __name__ == '__main__':
import sys
import doctest
import logging
- from core import connect
+ from .core import connect
logging.basicConfig(level=logging.DEBUG)
connect(*sys.argv[1:])
doctest.testmod()