Remove dictionnary comprehensions to be compatible with Python 2.6

This commit is contained in:
Benjamin Dauvergne 2015-03-09 09:53:47 +01:00
parent 16d4ddbb05
commit f846e702eb
2 changed files with 2 additions and 2 deletions

View File

@ -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):
'''

View File

@ -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']