summaryrefslogtreecommitdiff
path: root/test/convert.py
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-09 13:25:45 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-09 13:25:45 -0500
commit865c0ff828f88ed1d00eea73a3fc55b3e57d21b3 (patch)
tree5acdfae32811b25fb46271bf349a216bea41fddb /test/convert.py
parent55c7792c9329f97dd19fc5aeca466cb2de4fbf9c (diff)
parent9b396b41220646cf73fcd2a8afebcee06dde2a29 (diff)
downloadfork-ledger-865c0ff828f88ed1d00eea73a3fc55b3e57d21b3.tar.gz
fork-ledger-865c0ff828f88ed1d00eea73a3fc55b3e57d21b3.tar.bz2
fork-ledger-865c0ff828f88ed1d00eea73a3fc55b3e57d21b3.zip
Merge branch 'next'
Diffstat (limited to 'test/convert.py')
-rwxr-xr-xtest/convert.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/convert.py b/test/convert.py
index 556a20f5..d61da790 100755
--- a/test/convert.py
+++ b/test/convert.py
@@ -132,6 +132,16 @@ for line in fd.readlines():
line = re.sub('balance_pair_t', 'BalancePair', line)
line = re.sub('value_t', 'Value', line)
+ line = re.sub("PARSE_DEFAULT", "ParseFlags.Default", line)
+ line = re.sub("PARSE_PARTIAL", "ParseFlags.Partial", line)
+ line = re.sub("PARSE_SINGLE", "ParseFlags.Single", line)
+ line = re.sub("PARSE_NO_MIGRATE", "ParseFlags.NoMigrate", line)
+ line = re.sub("PARSE_NO_REDUCE", "ParseFlags.NoReduce", line)
+ line = re.sub("PARSE_NO_ASSIGN", "ParseFlags.NoAssign", line)
+ line = re.sub("PARSE_NO_DATES", "ParseFlags.NoDates", line)
+ line = re.sub("PARSE_OP_CONTEXT", "ParseFlags.OpContext", line)
+ line = re.sub("PARSE_SOFT_FAIL", "ParseFlags.SoftFail", line)
+
line = re.sub('ledger::', '', line)
line = re.sub('std::istringstream', 'StringIO', line)
line = re.sub('std::ostringstream', 'StringIO', line)