From fe2407bcf20477b85b8176e839de47c7b50b38f0 Mon Sep 17 00:00:00 2001 From: Devendra Gera Date: Tue, 1 Apr 2014 16:22:47 +0200 Subject: Fix str conversion of numerical fields --- jsonpath_rw/jsonpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonpath_rw/jsonpath.py b/jsonpath_rw/jsonpath.py index 7e45cb9..204b54c 100644 --- a/jsonpath_rw/jsonpath.py +++ b/jsonpath_rw/jsonpath.py @@ -416,7 +416,7 @@ class Fields(JSONPath): if field_datum is not None] def __str__(self): - return ','.join(self.fields) + return ','.join(map(str, self.fields)) def __repr__(self): return '%s(%s)' % (self.__class__.__name__, ','.join(map(repr, self.fields))) -- cgit v1.2.1