Skip to content

Commit fe2407b

Browse files
committed
Fix str conversion of numerical fields
1 parent 034b9ec commit fe2407b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonpath_rw/jsonpath.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def find(self, datum):
416416
if field_datum is not None]
417417

418418
def __str__(self):
419-
return ','.join(self.fields)
419+
return ','.join(map(str, self.fields))
420420

421421
def __repr__(self):
422422
return '%s(%s)' % (self.__class__.__name__, ','.join(map(repr, self.fields)))

0 commit comments

Comments
 (0)