cpp-pd-code-simplify-interface 0.1.0__tar.gz → 0.1.1__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.
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/PKG-INFO +1 -1
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/cpp_pd_code_simplify_interface/main.py +3 -1
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/pyproject.toml +1 -1
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/README.md +0 -0
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/build_backend/cpp_pd_code_simplify_interface_build_backend.py +0 -0
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/cpp_pd_code_simplify_interface/__init__.py +0 -0
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/cpp_pd_code_simplify_interface/__main__.py +0 -0
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/cpp_pd_code_simplify_interface/data/include/pdcode_simplify/pdcode_simplify.hpp +0 -0
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/cpp_pd_code_simplify_interface/data/src/native_interface.cpp +0 -0
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/cpp_pd_code_simplify_interface/data/src/pdcode_simplify.cpp +0 -0
- {cpp_pd_code_simplify_interface-0.1.0 → cpp_pd_code_simplify_interface-0.1.1}/cpp_pd_code_simplify_interface/py.typed +0 -0
|
@@ -436,6 +436,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
|
|
436
436
|
if args.remove_crossings:
|
|
437
437
|
remove_crossings = [int(token) for token in re.findall(r"-?\d+", args.remove_crossings)]
|
|
438
438
|
|
|
439
|
+
exit_code = 0
|
|
439
440
|
if args.pd_file:
|
|
440
441
|
lines = []
|
|
441
442
|
for line in pathlib.Path(args.pd_file).read_text(encoding="utf-8").splitlines():
|
|
@@ -456,6 +457,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
|
|
456
457
|
)
|
|
457
458
|
)
|
|
458
459
|
except Exception as exc:
|
|
460
|
+
exit_code = 2
|
|
459
461
|
batch_payload.append({"error": str(exc)})
|
|
460
462
|
payload: Any = batch_payload
|
|
461
463
|
else:
|
|
@@ -467,7 +469,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
|
|
467
469
|
)
|
|
468
470
|
|
|
469
471
|
print(json.dumps(payload, indent=2))
|
|
470
|
-
return
|
|
472
|
+
return exit_code
|
|
471
473
|
|
|
472
474
|
|
|
473
475
|
if __name__ == "__main__":
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|