Skip to content

Commit

Permalink
added xml declaration to output xml cot
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Oct 6, 2022
1 parent 63f38ef commit 67fec99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion aprscot/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,6 @@ def aprs_to_cot_xml(
def aprs_to_cot(frame: dict, config: Union[dict, None] = None) -> Union[bytes, None]:
"""Wrapper that returns COT as an XML string."""
cot: Union[ET.Element, None] = aprs_to_cot_xml(frame, config)
return ET.tostring(cot) if cot else None
return (
b"\n".join([pytak.DEFAULT_XML_DECLARATION, ET.tostring(cot)]) if cot else None
)
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import setuptools

__title__ = "aprscot"
__version__ = "6.0.0"
__version__ = "6.1.0"
__author__ = "Greg Albrecht W2GMD <oss@undef.net>"
__copyright__ = "Copyright 2022 Greg Albrecht"
__license__ = "Apache License, Version 2.0"
Expand Down Expand Up @@ -61,7 +61,7 @@ def publish():
long_description_content_type="text/x-rst",
zip_safe=False,
include_package_data=True,
install_requires=["aprslib", "pytak >= 5.0.0"],
install_requires=["aprslib", "pytak >= 5.4.0"],
classifiers=[
"Topic :: Communications :: Ham Radio",
"Programming Language :: Python",
Expand Down

0 comments on commit 67fec99

Please sign in to comment.