From 84f17f303e963c597c406595d577f7dabdb35dfa Mon Sep 17 00:00:00 2001
From: Anton Sarukhanov <code@ant.sr>
Date: Wed, 25 Nov 2020 22:16:30 -0500
Subject: [PATCH] dry

---
 kmljoin.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/kmljoin.py b/kmljoin.py
index bc8f206..ad087b5 100755
--- a/kmljoin.py
+++ b/kmljoin.py
@@ -1,10 +1,6 @@
 #!/bin/env python3
 """kmljoin - Join multiple KML files into a single KML file."""
 
-# Missing features:
-#  - Warn about large temporal discontinuity between files
-#  - Combine distinct airports/waypoint names for title
-
 
 import copy
 import sys
@@ -16,8 +12,8 @@ XML_NS = {
     'gx': 'http://www.google.com/kml/ext/2.2',
 }
 
-ET.register_namespace('', 'http://www.opengis.net/kml/2.2')
-ET.register_namespace('gx', 'http://www.google.com/kml/ext/2.2')
+for nskey, ns in XML_NS.items():
+    ET.register_namespace(nskey, ns)
 
 def combine_files(kml_files):
     """Combine two or more KML files into one."""
-- 
GitLab