python3: use relative import
This commit is contained in:
parent
2ee8b2e5fd
commit
019188f70e
|
@ -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',
|
||||
|
|
|
@ -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' ]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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']
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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']
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue