dummy: iterate over a copy of dictionary keys as they are changed in the loop

This commit is contained in:
Frédéric Péters 2018-07-25 14:48:32 +02:00
parent 36f2e38a84
commit d313a9cac4
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class Payment(PaymentCommon):
}
query.update(dict(name=name, address=address, email=email, phone=phone,
orderid=orderid, info1=info1, info2=info2, info3=info3))
for key in query.keys():
for key in list(query.keys()):
if query[key] is None:
del query[key]
url = '%s?%s' % (SERVICE_URL, urllib.urlencode(query))