From 0bbb4f2f0cbaa6ffb5c7a2c018a3819cca0b2405 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Mon, 11 Jan 2016 20:42:13 +0100 Subject: [python] Remove double quotes from unicode values When converting a ledger.Value to unicode the Python API added double quotes around it. --- test/regress/B21BF389.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/regress/B21BF389.py (limited to 'test/regress/B21BF389.py') 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"))) -- cgit v1.2.3