summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@toke.dk>2019-07-11 23:14:16 +0200
committerKonstantin Ryabitsev <konstantin@linuxfoundation.org>2019-07-11 17:31:21 -0400
commitdfccf80ad6b45075534bef21b396bf0f9bada13c (patch)
treecfc73a9d13d8ae1ce1717f33f3cf4364b633f8e2
parent92961b0315f870a45db5aae895bcd9fd577e7a47 (diff)
downloadksmap-dfccf80ad6b45075534bef21b396bf0f9bada13c.tar.gz
yaml-to-kml.py: Silence yaml module warning
The yaml module spit out a deprecation warning when running yaml-to-kml.py. Fix this as described in https://msg.pyyaml.org/load. Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
-rwxr-xr-xyaml-to-kml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaml-to-kml.py b/yaml-to-kml.py
index 2822470..a0c3d2a 100755
--- a/yaml-to-kml.py
+++ b/yaml-to-kml.py
@@ -48,7 +48,7 @@ if __name__ == '__main__':
for filename in glob.glob(args.filepattern):
with open(filename) as data_file:
try:
- ydata = yaml.load(data_file)
+ ydata = yaml.load(data_file, Loader=yaml.FullLoader)
except yaml.ParserError as ex:
print('Error parsing yaml in %s' % filename)
print(ex)