Skip to content

Commit

Permalink
Added CoT XML Declaration constant
Browse files Browse the repository at this point in the history
  • Loading branch information
ampledata committed Oct 6, 2022
1 parent c5aec06 commit bb58f05
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
PyTAK 5.4.0
-----------
Added CoT XML Declaration constant, should be included with all output XML CoT.

PyTAK 5.3.1
-----
Readme cleanup.
Expand Down
1 change: 1 addition & 0 deletions pytak/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
DEFAULT_HOST_ID,
BOOLEAN_TRUTH,
DEFAULT_MIN_ASYNC_SLEEP,
DEFAULT_XML_DECLARATION
)

from .classes import ( # NOQA
Expand Down
5 changes: 4 additions & 1 deletion pytak/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,7 @@
# await asyncio.sleep(0) should allow co-routines to yield, but they end up
# eating 100% CPU. @PeterQFR found bumping this to 0.1 solved the high CPU
# issue. See: https://github.com/ampledata/pytak/pull/22
DEFAULT_MIN_ASYNC_SLEEP: float = 0.1
DEFAULT_MIN_ASYNC_SLEEP: float = 0.1

# Python <3.8 has no way of including XML Declaration in ET.tostring():
DEFAULT_XML_DECLARATION: str = '<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import setuptools

__title__ = "pytak"
__version__ = "5.3.1"
__version__ = "5.4.0"
__author__ = "Greg Albrecht W2GMD <[email protected]>"
__copyright__ = "Copyright 2022 Greg Albrecht"
__license__ = "Apache License, Version 2.0"
Expand Down

0 comments on commit bb58f05

Please sign in to comment.