summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2018-03-26 07:30:17 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2018-07-25 08:13:27 (GMT)
commit019188f70e9113ebaeaba1d85c0869bae114abda (patch)
tree9b35be8361f0ad97d214c0a96bcb98b07dc4ea9b
parent2ee8b2e5fd1a7751aba120ef7994c30e143667dd (diff)
downloadeopayment-019188f70e9113ebaeaba1d85c0869bae114abda.zip
eopayment-019188f70e9113ebaeaba1d85c0869bae114abda.tar.gz
eopayment-019188f70e9113ebaeaba1d85c0869bae114abda.tar.bz2
python3: use relative import
-rw-r--r--eopayment/__init__.py4
-rw-r--r--eopayment/dummy.py2
-rw-r--r--eopayment/ogone.py2
-rw-r--r--eopayment/paybox.py2
-rw-r--r--eopayment/sips.py4
-rw-r--r--eopayment/sips2.py2
-rw-r--r--eopayment/spplus.py2
-rw-r--r--eopayment/systempayv2.py6
-rw-r--r--eopayment/tipi.py2
9 files changed, 13 insertions, 13 deletions
diff --git a/eopayment/__init__.py b/eopayment/__init__.py
index 7a15cbc..1f6d89c 100644
--- a/eopayment/__init__.py
+++ b/eopayment/__init__.py
@@ -2,8 +2,8 @@
import logging
-from common import (URL, HTML, FORM, RECEIVED, ACCEPTED, PAID, DENIED,
- CANCELED, CANCELLED, ERROR, WAITING, ResponseError, force_text)
+from .common import (URL, HTML, FORM, RECEIVED, ACCEPTED, PAID, DENIED,
+ CANCELED, CANCELLED, ERROR, WAITING, ResponseError, force_text)
__all__ = ['Payment', 'URL', 'HTML', 'FORM', 'SIPS',
'SYSTEMPAY', 'SPPLUS', 'TIPI', 'DUMMY', 'get_backend', 'RECEIVED', 'ACCEPTED',
diff --git a/eopayment/dummy.py b/eopayment/dummy.py
index 2ed8655..2b79258 100644
--- a/eopayment/dummy.py
+++ b/eopayment/dummy.py
@@ -10,7 +10,7 @@ try:
except ImportError:
from urlparse import parse_qs
-from common import PaymentCommon, URL, PaymentResponse, PAID, ERROR, WAITING, ResponseError
+from .common import PaymentCommon, URL, PaymentResponse, PAID, ERROR, WAITING, ResponseError
__all__ = [ 'Payment' ]
diff --git a/eopayment/ogone.py b/eopayment/ogone.py
index 900d348..8edb106 100644
--- a/eopayment/ogone.py
+++ b/eopayment/ogone.py
@@ -4,7 +4,7 @@ import string
import urlparse
from decimal import Decimal, ROUND_HALF_UP
-from common import (PaymentCommon, PaymentResponse, FORM, CANCELLED, PAID,
+from .common import (PaymentCommon, PaymentResponse, FORM, CANCELLED, PAID,
ERROR, Form, DENIED, ACCEPTED, ORDERID_TRANSACTION_SEPARATOR,
WAITING, ResponseError, force_byte, force_text)
def N_(message): return message
diff --git a/eopayment/paybox.py b/eopayment/paybox.py
index 2ebed40..53bf456 100644
--- a/eopayment/paybox.py
+++ b/eopayment/paybox.py
@@ -16,7 +16,7 @@ from gettext import gettext as _
import string
import warnings
-from common import (PaymentCommon, PaymentResponse, FORM, PAID, ERROR, Form,
+from .common import (PaymentCommon, PaymentResponse, FORM, PAID, ERROR, Form,
ORDERID_TRANSACTION_SEPARATOR, ResponseError)
__all__ = ['sign', 'Payment']
diff --git a/eopayment/sips.py b/eopayment/sips.py
index ef5f1c6..bc17b16 100644
--- a/eopayment/sips.py
+++ b/eopayment/sips.py
@@ -9,8 +9,8 @@ import os.path
import uuid
import warnings
-from common import PaymentCommon, HTML, PaymentResponse, ResponseError
-from cb import CB_RESPONSE_CODES
+from .common import PaymentCommon, HTML, PaymentResponse, ResponseError
+from .cb import CB_RESPONSE_CODES
'''
Payment backend module for the ATOS/SIPS system used by many Frenck banks.
diff --git a/eopayment/sips2.py b/eopayment/sips2.py
index 584ec56..1e4cc52 100644
--- a/eopayment/sips2.py
+++ b/eopayment/sips2.py
@@ -11,7 +11,7 @@ from gettext import gettext as _
import requests
import warnings
-from common import (PaymentCommon, FORM, Form, PaymentResponse, PAID, ERROR,
+from .common import (PaymentCommon, FORM, Form, PaymentResponse, PAID, ERROR,
CANCELED, ResponseError)
__all__ = ['Payment']
diff --git a/eopayment/spplus.py b/eopayment/spplus.py
index d6e7b48..854a96c 100644
--- a/eopayment/spplus.py
+++ b/eopayment/spplus.py
@@ -13,7 +13,7 @@ import re
import warnings
import Crypto.Cipher.DES
-from common import (PaymentCommon, URL, PaymentResponse, RECEIVED, ACCEPTED,
+from .common import (PaymentCommon, URL, PaymentResponse, RECEIVED, ACCEPTED,
PAID, ERROR, ResponseError)
def N_(message): return message
diff --git a/eopayment/systempayv2.py b/eopayment/systempayv2.py
index ccf38d0..d9153a4 100644
--- a/eopayment/systempayv2.py
+++ b/eopayment/systempayv2.py
@@ -8,9 +8,9 @@ import urlparse
import warnings
from gettext import gettext as _
-from common import (PaymentCommon, PaymentResponse, PAID, ERROR, FORM, Form,
- ResponseError, force_text, force_byte)
-from cb import CB_RESPONSE_CODES
+from .common import (PaymentCommon, PaymentResponse, PAID, ERROR, FORM, Form,
+ ResponseError, force_text, force_byte)
+from .cb import CB_RESPONSE_CODES
__all__ = ['Payment']
diff --git a/eopayment/tipi.py b/eopayment/tipi.py
index 3a3b571..2839f7c 100644
--- a/eopayment/tipi.py
+++ b/eopayment/tipi.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from decimal import Decimal, ROUND_DOWN
-from common import (PaymentCommon, PaymentResponse, URL, PAID, DENIED,
+from .common import (PaymentCommon, PaymentResponse, URL, PAID, DENIED,
CANCELLED, ERROR, ResponseError)
from urllib import urlencode
from urlparse import parse_qs