diff options
author | Kenn Knowles <kenn@kennknowles.com> | 2014-04-01 10:40:42 -0400 |
---|---|---|
committer | Kenn Knowles <kenn@kennknowles.com> | 2014-04-01 10:40:42 -0400 |
commit | 77ac4572050a8807b068330d3c981c6c4e8c5686 (patch) | |
tree | afcc506a035d406aa4a754c7cbf0c59c41f88f01 | |
parent | 034b9ec1acb2a1875b5e3a4fe3c937e2237da427 (diff) | |
parent | fe2407bcf20477b85b8176e839de47c7b50b38f0 (diff) | |
download | jsonpath-rw-77ac4572050a8807b068330d3c981c6c4e8c5686.tar.gz |
Merge pull request #14 from gera/patch-2
Fix str conversion of numerical fields
-rw-r--r-- | jsonpath_rw/jsonpath.py | 2 |
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))) |