Skip to content

Commit 3fbc4d9

Browse files
authored
Merge pull request #23 from fchevitarese/master
Fix print statement to be compatible with python3 on widgets.py
2 parents f3cbbe3 + ddb9c95 commit 3fbc4d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

splitjson/widgets.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def _to_build(self, name, json_obj):
3737
_l = ['%s:%s' % (title, self.newline)]
3838
for key, value in enumerate(json_obj):
3939
_l.append(self._to_build("%s%s%s" % (name,
40-
self.separator, key), value))
40+
self.separator, key), value))
4141
inputs.extend([_l])
4242
elif isinstance(json_obj, dict):
4343
title = name.rpartition(self.separator)[2]
@@ -159,5 +159,4 @@ def render(self, name, value, attrs=None):
159159
# render json as well
160160
source_data = u'<hr/>Source data: <br/>%s<hr/>' % str(value)
161161
result = '%s%s' % (result, source_data)
162-
print result
163162
return utils.safestring.mark_safe(result)

0 commit comments

Comments
 (0)