Remove dictionnary comprehensions to be compatible with Python 2.6
This commit is contained in:
parent
16d4ddbb05
commit
f846e702eb
|
@ -31,7 +31,7 @@ def get_backends():
|
|||
'Dummy payment backend'
|
||||
|
||||
'''
|
||||
return {backend: get_backend(backend) for backend in __BACKENDS}
|
||||
return dict((backend, get_backend(backend)) for backend in __BACKENDS)
|
||||
|
||||
class Payment(object):
|
||||
'''
|
||||
|
|
|
@ -508,7 +508,7 @@ class Payment(PaymentCommon):
|
|||
|
||||
def response(self, query_string):
|
||||
params = urlparse.parse_qs(query_string, True)
|
||||
params = {key.upper(): params[key][0] for key in params}
|
||||
params = dict((key.upper(), params[key][0]) for key in params)
|
||||
reference = params['ORDERID']
|
||||
transaction_id = params['PAYID']
|
||||
status = params['STATUS']
|
||||
|
|
Loading…
Reference in New Issue