diff options
author | John Wiegley <johnw@newartisans.com> | 2016-01-18 17:17:18 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2016-01-18 17:17:18 -0500 |
commit | aea196104b73be60b5e53972e45e0429e158e193 (patch) | |
tree | 9b275d6609deda7af748ba855eda8779dee5899b | |
parent | f612ef0b25a6f679fae47f8371bcd4c25a380b02 (diff) | |
parent | 0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405 (diff) | |
download | fork-ledger-aea196104b73be60b5e53972e45e0429e158e193.tar.gz fork-ledger-aea196104b73be60b5e53972e45e0429e158e193.tar.bz2 fork-ledger-aea196104b73be60b5e53972e45e0429e158e193.zip |
Merge pull request #443 from afh/pull/py_unicode_value
[python] Remove double quotes from unicode values
-rw-r--r-- | src/py_value.cc | 1 | ||||
-rw-r--r-- | test/regress/B21BF389.py | 9 | ||||
-rw-r--r-- | test/regress/B21BF389_py.test | 8 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/py_value.cc b/src/py_value.cc index 60ba4cf2..5f93b7b3 100644 --- a/src/py_value.cc +++ b/src/py_value.cc @@ -325,7 +325,6 @@ void export_value() .def("to_mask", &value_t::to_mask) .def("to_sequence", &value_t::to_sequence) - .def("__unicode__", py_dump_relaxed) .def("__repr__", py_dump) .def("casted", &value_t::casted) 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"))) diff --git a/test/regress/B21BF389_py.test b/test/regress/B21BF389_py.test new file mode 100644 index 00000000..c0a2166a --- /dev/null +++ b/test/regress/B21BF389_py.test @@ -0,0 +1,8 @@ +2016/01/11 * Employer + Assets:Checking + Income:Salary € 1.500,00 + ; Reference: Christmas bonus + +test python test/regress/B21BF389.py +Christmas bonus +end test |