pilot.linkstec 0.0.102__py3-none-any.whl → 0.0.104__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.
@@ -5,14 +5,13 @@ from pathlib import Path
5
5
  from typing import List, Dict, Any
6
6
  from venv import logger
7
7
 
8
- from base.get_file_encoding import get_file_encoding
9
8
 
10
9
  #
11
10
  def read_file_lines(file_path):
12
11
  if not os.path.exists(file_path):
13
12
  logger.error(f"ファイルが存在しない。{file_path}")
14
13
  return None
15
- file_encoding = get_file_encoding(file_path)
14
+ file_encoding = 'utf-8'
16
15
  with open(file_path, 'r', encoding=file_encoding) as f:
17
16
  _lines = f.readlines()
18
17
  return _lines
@@ -22,7 +21,7 @@ def read_json_file_lines(json_file_path):
22
21
  logger.error(f"JSONファイルが存在しない。{json_file_path}")
23
22
  return None
24
23
 
25
- json_file_encoding = get_file_encoding(json_file_path)
24
+ json_file_encoding = 'utf-8'
26
25
  with open(json_file_path, 'r', encoding=json_file_encoding) as fp:
27
26
  return json.load(fp) # -> List[Dict]
28
27
 
@@ -20,12 +20,13 @@ def nkf_convert(file_path, nkf_args):
20
20
  result = subprocess.run(
21
21
  cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, check=True)
22
22
  print(f"nkfの実行完了しました: {file_path}")
23
+ # nkfの変換結果(バイト列)を返す
24
+ return result.stdout
25
+
23
26
  except subprocess.CalledProcessError as e:
24
27
  print(f"nkfの実行でエラーが発生しました: {e.stderr.decode()}", file=sys.stderr)
25
- return None
28
+ raise
26
29
 
27
- # nkfの変換結果(バイト列)を返す
28
- return result.stdout
29
30
 
30
31
 
31
32
  #if __name__ == "__main__":
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.102
3
+ Version: 0.0.104
4
4
  Summary: pilot of the ship, a tool for managing and deploying Python projects.
5
5
  Author-email: wanglr <wanglr1980@gmail.com>
6
6
  License-Expression: MIT
@@ -5,7 +5,7 @@ pilot/base/ai_info.py,sha256=tSAxfyza51-pyqzyGxdrf5rAWRGNdWnzvLi2zjB4XPo,596
5
5
  pilot/base/chage_file_tag_base.py,sha256=t4yBHaU4Q5fJXD_xHZTXfMrm7I0luOGRjg1RKvx-we4,2434
6
6
  pilot/base/db_operation_base.py,sha256=E-sIuUZv8YXHS3zLDrZPaOiPdeLuVW3L9aSBDgGC7Rs,22252
7
7
  pilot/base/delete_commnents_base.py,sha256=BxNHXVCy_zSnp7j3AzausFDI-jEOcZe8o8_BQaocMz8,12007
8
- pilot/base/file_operation.py,sha256=SEguSMtkwKnOLX1KgMmFSLlPjm2IOhgUuRy07fKFCxk,1563
8
+ pilot/base/file_operation.py,sha256=uu9VMd7jQUcWooFRe5YHd5liODsslC1TjilwvcypTac,1462
9
9
  pilot/base/get_file_encoding.py,sha256=U118_SxBXz69hhY8FGZWNQDxB1zfMG5_7gkAb6O3uG0,400
10
10
  pilot/base/make_parsing_java_file_order_base.py,sha256=mK4tIN2EIHPm7CkPrYkfVI2xA8nW1kKPsGWC4A9zat4,6310
11
11
  pilot/base/split_file_base.py,sha256=CuPI9XHlSTTkLRNXW6SNEKkdSZBOMuy685e2TcnWPkY,12625
@@ -19,7 +19,7 @@ pilot/control/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
19
19
  pilot/control/impl/base_controller.py,sha256=049WVHCVfKyAiWHD1epLO8nzDbRDDOopXe0E4K401KA,3743
20
20
  pilot/conver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
21
  pilot/conver/commentRemover.py,sha256=S8uwp9Glp0bdv4EFqf62WIcOTLiJZdracG2FAMKY1EY,3777
22
- pilot/conver/converfileEncodding.py,sha256=HnP-7o6V4YCEq8SA1iryyGUwbnWBkFbL16DxrTq7N-s,1582
22
+ pilot/conver/converfileEncodding.py,sha256=YpPPTf52ujfWn8YlKuKYhSbcToQj34Gs4PmdcUbm040,1586
23
23
  pilot/create_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  pilot/create_python/create_python.py,sha256=VQwL1KKw06ocVi-uRCL_l2rDiSaEr80R1LCt2u4ilOo,8795
25
25
  pilot/create_python/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -73,8 +73,8 @@ pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  pilot/unit/impl/base_unit.py,sha256=h6PMtd4ja0wa6mttFeI7rsv92yy96UgfLIU0QSs6Dmk,2108
74
74
  pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
75
  pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
76
- pilot_linkstec-0.0.102.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
77
- pilot_linkstec-0.0.102.dist-info/METADATA,sha256=I5WbKFc5WYdOkKYaPDMdkn6tOMnMIaPzmvJI0Th2meE,680
78
- pilot_linkstec-0.0.102.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
79
- pilot_linkstec-0.0.102.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
80
- pilot_linkstec-0.0.102.dist-info/RECORD,,
76
+ pilot_linkstec-0.0.104.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
77
+ pilot_linkstec-0.0.104.dist-info/METADATA,sha256=rzcQ3c4gnVrNFbVBbhpbxqXye7Udx2EDvHGgMMJbIy8,680
78
+ pilot_linkstec-0.0.104.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
79
+ pilot_linkstec-0.0.104.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
80
+ pilot_linkstec-0.0.104.dist-info/RECORD,,