MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / strip_par

Function strip_par

bmtools/tools/database/utils/db_utils.py:20–23  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

18 return strip_par(' '.join(str(t) for t in tmp))
19
20def strip_par(s):
21 for op in ['(',')',',','>','=','<','>=','<=','!=','<>','.',';']:
22 s = s.replace(' {}'.format(op), op).replace('{} '.format(op), op)
23 return s
24
25def preprocess_execute_sql(sql):
26 sql = remove_create_table(sql)

Callers 1

clean_sqlFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected