diff --git a/scripts/sql_to_wasm_shell_link.py b/scripts/sql_to_wasm_shell_link.py index 5b99fe6d211..f65b9450338 100644 --- a/scripts/sql_to_wasm_shell_link.py +++ b/scripts/sql_to_wasm_shell_link.py @@ -60,11 +60,17 @@ for statement in statements: trimmed = statement.strip() - no_hyphens = trimmed.replace('-','%2D') + no_hyphens = trimmed.replace('-', '%2D') no_spaces = no_hyphens.replace('\n',' ').replace(' ', '-') - encoded = no_spaces.replace(',','%2C').replace('=','%3D').replace(':','%3A').replace(r'/','%2F').replace('%2D',' ') + encoded = ( + no_spaces.replace(',','%2C') + .replace('=','%3D') + .replace(':','%3A') + .replace(r'/','%2F') + .replace('%2D',' ') + ) encoded_statements.append(encoded) combined = shell_link_stub + '~,'.join(encoded_statements) -print(combined) \ No newline at end of file +print(combined)