kkpyutil 1.36.0__py3-none-any.whl → 1.36.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kkpyutil-1.36.0.dist-info → kkpyutil-1.36.2.dist-info}/METADATA +1 -1
- kkpyutil-1.36.2.dist-info/RECORD +7 -0
- kkpyutil.py +4 -1
- kkpyutil-1.36.0.dist-info/RECORD +0 -7
- {kkpyutil-1.36.0.dist-info → kkpyutil-1.36.2.dist-info}/LICENSE +0 -0
- {kkpyutil-1.36.0.dist-info → kkpyutil-1.36.2.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
kkpyutil.py,sha256=oImW-f1e1EINwHSkoW8NkGPbVVCr5rsZAvJmBoDCU1I,108149
|
|
2
|
+
kkpyutil_helper/windows/kkttssave.ps1,sha256=xa3-WzqNh2rGYlOx_I4ewOuCE94gkTO5cEwYH0M67_0,446
|
|
3
|
+
kkpyutil_helper/windows/kkttsspeak.ps1,sha256=7WUUHMmjTQroUWA2Mvdt4JtSt475nZUHQx-qP-7rS6o,305
|
|
4
|
+
kkpyutil-1.36.2.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
|
|
5
|
+
kkpyutil-1.36.2.dist-info/METADATA,sha256=eheJ6IiNabKgK-uthq-wzBGFckxYbdV-97opGJq0N_k,1136
|
|
6
|
+
kkpyutil-1.36.2.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
7
|
+
kkpyutil-1.36.2.dist-info/RECORD,,
|
kkpyutil.py
CHANGED
|
@@ -319,7 +319,10 @@ def format_xml(elem, indent=' ', encoding='utf-8'):
|
|
|
319
319
|
from xml.dom import minidom
|
|
320
320
|
rough_string = ET.tostring(elem, encoding)
|
|
321
321
|
reparsed = minidom.parseString(rough_string)
|
|
322
|
-
|
|
322
|
+
raw = reparsed.toprettyxml(indent=indent, encoding=encoding).decode(encoding)
|
|
323
|
+
lines = raw.split('\n')
|
|
324
|
+
non_empty_lines = [line for line in lines if line.strip() != '']
|
|
325
|
+
return '\n'.join(non_empty_lines)
|
|
323
326
|
|
|
324
327
|
|
|
325
328
|
def throw(err_cls, detail, advice):
|
kkpyutil-1.36.0.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
kkpyutil.py,sha256=MqHZaKpYvSnqTQafDF-Ij7-ojZAjjWGlJaC3uf2EdpU,107979
|
|
2
|
-
kkpyutil_helper/windows/kkttssave.ps1,sha256=xa3-WzqNh2rGYlOx_I4ewOuCE94gkTO5cEwYH0M67_0,446
|
|
3
|
-
kkpyutil_helper/windows/kkttsspeak.ps1,sha256=7WUUHMmjTQroUWA2Mvdt4JtSt475nZUHQx-qP-7rS6o,305
|
|
4
|
-
kkpyutil-1.36.0.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
|
|
5
|
-
kkpyutil-1.36.0.dist-info/METADATA,sha256=nOnCODHLaO5XgSQJOGaRrKcIJOoOkIINmiGaY_U1Hk8,1136
|
|
6
|
-
kkpyutil-1.36.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
7
|
-
kkpyutil-1.36.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|