[python] Remove double quotes from unicode values

When converting a ledger.Value to unicode the Python API added
double quotes around it.
This commit is contained in:
Alexis Hildebrandt 2016-01-11 20:42:13 +01:00
parent b5b70625d5
commit 0bbb4f2f0c
3 changed files with 17 additions and 1 deletions

View file

@ -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)

9
test/regress/B21BF389.py Normal file
View file

@ -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")))

View file

@ -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