kkpyutil 1.31.0__py3-none-any.whl → 1.32.0__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.31.0.dist-info → kkpyutil-1.32.0.dist-info}/METADATA +1 -1
- kkpyutil-1.32.0.dist-info/RECORD +7 -0
- kkpyutil.py +3 -3
- kkpyutil-1.31.0.dist-info/RECORD +0 -7
- {kkpyutil-1.31.0.dist-info → kkpyutil-1.32.0.dist-info}/LICENSE +0 -0
- {kkpyutil-1.31.0.dist-info → kkpyutil-1.32.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
kkpyutil.py,sha256=1W6feUcvA1ZX1sUoMS-W14TrH6JZJwnHOXH2BljNzU8,106185
|
|
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.32.0.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
|
|
5
|
+
kkpyutil-1.32.0.dist-info/METADATA,sha256=yGj6Qux0CL1EYpsenc-8kqrwgUdxEgwV0Xq1GcadT3Q,1136
|
|
6
|
+
kkpyutil-1.32.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
7
|
+
kkpyutil-1.32.0.dist-info/RECORD,,
|
kkpyutil.py
CHANGED
|
@@ -521,11 +521,11 @@ def save_plist(path, my_map, binary=False):
|
|
|
521
521
|
plistlib.dump(my_map, fp, fmt=fmt)
|
|
522
522
|
|
|
523
523
|
|
|
524
|
-
def substitute_keywords_in_file(file, str_map, useliteral=False):
|
|
525
|
-
with open(file) as f:
|
|
524
|
+
def substitute_keywords_in_file(file, str_map, useliteral=False, encoding=TXT_CODEC):
|
|
525
|
+
with open(file, encoding=encoding) as f:
|
|
526
526
|
original = f.read()
|
|
527
527
|
updated = substitute_keywords(original, str_map, useliteral)
|
|
528
|
-
with open(file, 'w') as f:
|
|
528
|
+
with open(file, 'w', encoding=encoding) as f:
|
|
529
529
|
f.write(updated)
|
|
530
530
|
|
|
531
531
|
|
kkpyutil-1.31.0.dist-info/RECORD
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
kkpyutil.py,sha256=FjtXPT-FoPzQ_4YoEiFJtJpA7iW1_76UOK1LPnWyC6E,106127
|
|
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.31.0.dist-info/LICENSE,sha256=uISevGnCxB5QOU0ftbofN75_yUtd6E2h_MWE1zqagC8,1065
|
|
5
|
-
kkpyutil-1.31.0.dist-info/METADATA,sha256=cPE_pR1nbyhgayzgnzh24vZvqLFjqOKeyDQTpCc6myA,1136
|
|
6
|
-
kkpyutil-1.31.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
7
|
-
kkpyutil-1.31.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|