summaryrefslogtreecommitdiff
path: root/test/convert.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-04 19:55:27 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-04 19:55:27 -0400
commit2d941730b1c60342be5b108d2d654723b3b7c2cb (patch)
tree6a3f4b7305857e85d2684670492007bafc3668d0 /test/convert.py
parent73cf3b01fbd50c3a8a4fd96ff69643c28394d8fe (diff)
downloadfork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.gz
fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.tar.bz2
fork-ledger-2d941730b1c60342be5b108d2d654723b3b7c2cb.zip
Largely removed all of Ledger's use of global variables, for the REPL's sake.
Diffstat (limited to 'test/convert.py')
-rwxr-xr-xtest/convert.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/convert.py b/test/convert.py
index 9f322b2e..278bc76f 100755
--- a/test/convert.py
+++ b/test/convert.py
@@ -144,6 +144,8 @@ for line in fd.readlines():
line = re.sub('\.print\(([^)]+?)\)', '.print_(\\1)', line)
line = re.sub('true', 'True', line)
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('([0-9]+)[FL]', '\\1', line)
line = re.sub('([0-9]+)UL', '\\1L', line)
line = re.sub(';', '', line)