diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-19 21:53:02 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-19 22:24:24 -0500 |
commit | 4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2 (patch) | |
tree | e4bce67522d52cd7be03544501191d761dce7799 /test/convert.py | |
parent | 6e31328bd62d15e8da4238394abd8de65539cfa2 (diff) | |
download | fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.tar.gz fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.tar.bz2 fork-ledger-4e30fcdf4094a0c450cbe1918c2e12dd19eb58f2.zip |
Many improvements to Ledger's Python bindings
Diffstat (limited to 'test/convert.py')
-rwxr-xr-x | test/convert.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/convert.py b/test/convert.py index 0c64fde4..05a62b7e 100755 --- a/test/convert.py +++ b/test/convert.py @@ -158,6 +158,8 @@ for line in fd.readlines(): line = re.sub('false', 'False', line) line = re.sub('CURRENT_TIME\(\)', 'datetime.now()', line) line = re.sub('CURRENT_DATE\(\)', 'date.today()', line) + line = re.sub('commodity\(\)', 'commodity', line) + line = re.sub('precision\(\)', 'precision', line) line = re.sub('([0-9]+)[FL]', '\\1', line) line = re.sub('([0-9]+)UL', '\\1L', line) line = re.sub(';', '', line) |