Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 25, 2024
1 parent 57a22a7 commit b59e3ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/native_libraries/get_emba_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,12 @@ def parse_cfg_file(content):

# Remove leading ^ from each string in the filecontent list
for i, pattern in enumerate(filecontent_list): # Use enumerate to get index and value
if pattern.startswith("^"):
filecontent_list[i] = pattern[1:]
if pattern.startswith("^"):
filecontent_list[i] = pattern[1:]

if not pattern.endswith("\\$"):
if pattern.endswith("$"):
filecontent_list[i] = pattern[:-1]
if not pattern.endswith("\\$"):
if pattern.endswith("$"):
filecontent_list[i] = pattern[:-1]

os.makedirs(os.path.dirname(json_file_path), exist_ok=True)
with open(json_file_path, "w") as json_file:
Expand Down

0 comments on commit b59e3ec

Please sign in to comment.