If these lines will be changed:
# We need to know if the field exists or if it's just Null
fieldexists = True
try:
value = x[fieldname]
except KeyError:
fieldexists = False
finally:
value = x.get(fieldname)
to
# We need to know if the field exists or if it's just Null
fieldexists = fieldname in x
value = x.get(fieldname)
Then jsonschema will work in Python 2.4
Cheers
Petr Kobalíček
Original issue reported on code.google.com by kobalicek.petr on 24 Nov 2008 at 2:37
Original issue reported on code.google.com by
kobalicek.petr
on 24 Nov 2008 at 2:37