Skip to content

Commit 3e2c9f2

Browse files
committed
fix: auto format code by pre-commit black & trim whitespace
1 parent 8c4bd9e commit 3e2c9f2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • transformer_engine/plugin/core/backends/vendor/hygon

transformer_engine/plugin/core/backends/vendor/hygon/hygon.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ def _get_sys_extension() -> str:
3737
hygon_spec = importlib.util.find_spec("transformer_engine_hygon")
3838
if hygon_spec is None:
3939
return False
40-
4140
if hygon_spec.origin is not None:
4241
hygon_path = Path(hygon_spec.origin).parent
4342
elif hygon_spec.submodule_search_locations:
4443
hygon_path = Path(hygon_spec.submodule_search_locations[0])
4544
else:
46-
print("[ERROR _load_hygon_libs] cannot determine package path, origin is None and submodule_search_locations is empty")
45+
print(
46+
"[ERROR _load_hygon_libs] cannot determine package path, origin is None and"
47+
" submodule_search_locations is empty"
48+
)
4749
return False
48-
4950
for file_path in hygon_path.iterdir():
5051
if file_path.name.startswith(common_prefix) and file_path.suffix == ext:
5152
common_files.append(file_path)

0 commit comments

Comments
 (0)