diff options
| author | P. Christeas <p_christ@hol.gr> | 2010-06-21 17:36:32 +0300 |
|---|---|---|
| committer | P. Christeas <p_christ@hol.gr> | 2010-06-21 17:36:32 +0300 |
| commit | 4afe236b0c036f98d97a5d4bf30b630957599ef5 (patch) | |
| tree | 92c894cf6972f8c8a664e300c70b89d89fcbe1e6 /bin/sql_db.py | |
| parent | 419da67ee7a570c3adad9ddd6192393ff306e7fa (diff) | |
safe_eval: fix wrt whitespace on expressions.
Regular eval() would not care about leading whitespace. But, compile() would
break if lines start with space. Strip that.
Also, allow some exceptions to pass through, so that we can examine the
syntax errors etc.
bzr revid: p_christ@hol.gr-20100621143632-0hvrck77lterxjtl
Diffstat (limited to 'bin/sql_db.py')
0 files changed, 0 insertions, 0 deletions
