summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevendra Gera <gera@theoldmonk.net>2014-04-01 16:22:47 +0200
committerDevendra Gera <gera@theoldmonk.net>2014-04-01 16:22:47 +0200
commitfe2407bcf20477b85b8176e839de47c7b50b38f0 (patch)
treeafcc506a035d406aa4a754c7cbf0c59c41f88f01
parent034b9ec1acb2a1875b5e3a4fe3c937e2237da427 (diff)
downloadjsonpath-rw-fe2407bcf20477b85b8176e839de47c7b50b38f0.tar.gz
Fix str conversion of numerical fields
-rw-r--r--jsonpath_rw/jsonpath.py2
1 files changed, 1 insertions, 1 deletions
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)))