kkpyutil 1.31.0__tar.gz → 1.32.0__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kkpyutil
3
- Version: 1.31.0
3
+ Version: 1.32.0
4
4
  Summary: Building blocks for sysadmin and DevOps
5
5
  Home-page: https://github.com/kakyoism/kkpyutil/
6
6
  License: MIT
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kkpyutil"
3
- version = "1.31.0"
3
+ version = "1.32.0"
4
4
  description = "Building blocks for sysadmin and DevOps"
5
5
  authors = ["Beinan Li <li.beinan@gmail.com>"]
6
6
  maintainers = ["Beinan Li <li.beinan@gmail.com>"]
File without changes
File without changes