Skip to content

Commit

Permalink
Merge branch 'jurekl-main'
Browse files Browse the repository at this point in the history
  • Loading branch information
iterativv committed Aug 14, 2021
2 parents 39554b9 + 3d0e811 commit 4e8f9d0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions codemods/ho_to_raw_codemod.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,13 @@ def replace_all_references(strategy: IStrategy, source: str):
new_source = replace_references(source, buy_params)
print("Replacing references of 'sell' hyperopting params...")
new_source = replace_references(new_source, sell_params)

print("Replacing 'references' of 'buy_protection_params' hyperopting params...")
new_source = re.sub(
r"(global_buy_protection_params\[([\"\'])[\w\_]+\2\]).value"
, r'\1',
new_source)

return new_source


Expand Down

0 comments on commit 4e8f9d0

Please sign in to comment.