in geoshape/_tools/parse.py [0:0]
def to_json(f):
for line in f:
try:
d = {}
d["shape"] = line.strip()
print(json.dumps(d))
except KeyboardInterrupt:
break
except Exception as e:
print("Skipping malformed entry '%s' because of %s" %(line, str(e)), file=sys.stderr)