diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2016-01-11 20:42:13 +0100 |
---|---|---|
committer | Alexis Hildebrandt <afh@surryhill.net> | 2016-01-11 21:38:32 +0100 |
commit | 0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405 (patch) | |
tree | b91c8c60e661f32b3aa3003a463ee9572e78818f /test/regress/B21BF389.py | |
parent | b5b70625d59305d0f3af3a9baad3931aba43df47 (diff) | |
download | fork-ledger-0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405.tar.gz fork-ledger-0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405.tar.bz2 fork-ledger-0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405.zip |
[python] Remove double quotes from unicode values
When converting a ledger.Value to unicode the Python API added
double quotes around it.
Diffstat (limited to 'test/regress/B21BF389.py')
-rw-r--r-- | test/regress/B21BF389.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/regress/B21BF389.py b/test/regress/B21BF389.py new file mode 100644 index 00000000..707ce340 --- /dev/null +++ b/test/regress/B21BF389.py @@ -0,0 +1,9 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from __future__ import print_function, unicode_literals + +import ledger + +for post in ledger.read_journal(__file__.replace(".py", "_py.test")).query("income"): + print(unicode(post.tag("Reference"))) |