diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-10 18:44:08 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-10 18:44:08 -0500 |
commit | ac885a907525589aa56266d9a2527cdc7127c9cb (patch) | |
tree | d95c1cd20cb7df81b643f35c840c379fcae3f547 /test/convert.py | |
parent | 0ac2dc28104253faf82a3ed3d12bb16a1a150067 (diff) | |
download | fork-ledger-ac885a907525589aa56266d9a2527cdc7127c9cb.tar.gz fork-ledger-ac885a907525589aa56266d9a2527cdc7127c9cb.tar.bz2 fork-ledger-ac885a907525589aa56266d9a2527cdc7127c9cb.zip |
All strings passed to Python are now Unicode objects
Diffstat (limited to 'test/convert.py')
-rwxr-xr-x | test/convert.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/convert.py b/test/convert.py index d61da790..0c64fde4 100755 --- a/test/convert.py +++ b/test/convert.py @@ -150,6 +150,7 @@ for line in fd.readlines(): line = re.sub('set_session_context\(\)', 'set_session_context()\n self.testSession = None', line) line = re.sub('([a-z_]+?)_t\b', '\\1', line) + line = re.sub('("[^"]+")', 'u\\1', line) line = re.sub('std::string\(([^)]+?)\)', '\\1', line) line = re.sub('string\(([^)]+?)\)', '\\1', line) line = re.sub('\.print\(([^)]+?)\)', '.print_(\\1)', line) |