geopointshape/_tools/parse.py [12:23]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      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)

if sys.argv[1] == "json":
  for file_name in sys.argv[2:]:
    with open(file_name) as f:
      to_json(f)
else:
  raise Exception("Expected 'json' but got %s" %sys.argv[1])
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



geoshape/_tools/parse.py [11:22]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      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)

if sys.argv[1] == "json":
  for file_name in sys.argv[2:]:
    with open(file_name) as f:
      to_json(f)
else:
  raise Exception("Expected 'json' but got %s" %sys.argv[1])
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



