Skip to content

Commit

Permalink
Merge pull request #243 from cleder/refactor-gx
Browse files Browse the repository at this point in the history
Refactor gx.Track and gx.Multitrack
  • Loading branch information
cleder authored Oct 15, 2023
2 parents 4e77361 + c71625e commit c65d97f
Show file tree
Hide file tree
Showing 9 changed files with 788 additions and 941 deletions.
2 changes: 0 additions & 2 deletions fastkml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
from fastkml.data import ExtendedData
from fastkml.data import Schema
from fastkml.data import SchemaData
from fastkml.gx import GxGeometry
from fastkml.kml import KML
from fastkml.kml import Document
from fastkml.kml import Folder
Expand Down Expand Up @@ -66,7 +65,6 @@
"TimeStamp",
"ExtendedData",
"Data",
"GxGeometry",
"Schema",
"SchemaData",
"StyleUrl",
Expand Down
11 changes: 7 additions & 4 deletions fastkml/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,16 @@ def set_etree_implementation(implementation: ModuleType) -> None:
ATOMNS = "{http://www.w3.org/2005/Atom}" # noqa: FS003
GXNS = "{http://www.google.com/kml/ext/2.2}" # noqa: FS003

DEFAULT_NAME_SPACES = {
"kml": KMLNS[1:-1],
"atom": ATOMNS[1:-1],
"gx": GXNS[1:-1],
NAME_SPACES = {
"kml": KMLNS,
"atom": ATOMNS,
"gx": GXNS,
}


DEFAULT_NAME_SPACES = {k: v[1:-1] for k, v in NAME_SPACES.items()}


def register_namespaces(**namespaces: str) -> None:
"""Register namespaces for use in etree.ElementTree.parse()."""
try:
Expand Down
Loading

0 comments on commit c65d97f

Please sign in to comment.