- if options['format'] == "json":
- printNicely("[")
- for status in statuses[:-1]:
- statusStr = sf(status, options)
- if statusStr.strip():
- printNicely(statusStr+",")
- printNicely(sf(statuses[-1], options)+"]")
- else:
- for status in statuses:
- statusStr = sf(status, options)
- if statusStr.strip():
- printNicely(statusStr)
+ for status in statuses:
+ statusStr = sf(status, options)
+ if statusStr.strip():
+ printNicely(statusStr)