I have this line of code:
d = {t.tag: {k:v[0] if len(v) == 1 else v for k, v in dd.iteritems()}}
Unfortunately I'm working on python 2.6 and it does not support dictionary comprehensions.
How should it look to make it work for python 2.6?
I have this line of code:
d = {t.tag: {k:v[0] if len(v) == 1 else v for k, v in dd.iteritems()}}
Unfortunately I'm working on python 2.6 and it does not support dictionary comprehensions.
How should it look to make it work for python 2.6?
Copyright © 2021 Jogjafile Inc.