json object writing ...

pull/1/head
Steve L. Nyemba 4 years ago
parent 4a985e82dc
commit 5676c4991f

@ -8,7 +8,7 @@ def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() return open(os.path.join(os.path.dirname(__file__), fname)).read()
args = { args = {
"name":"data-transport", "name":"data-transport",
"version":"1.1.6", "version":"1.1.8",
"author":"The Phi Technology LLC","author_email":"info@the-phi.com", "author":"The Phi Technology LLC","author_email":"info@the-phi.com",
"license":"MIT", "license":"MIT",
"packages":["transport"]} "packages":["transport"]}

@ -95,7 +95,7 @@ class DiskWriter(Writer):
f.write(self.format(info)) f.write(self.format(info))
else: else:
if not type(info) == str : if not type(info) == str :
f.write(json.dumps(info)) f.write(json.dumps(info)+"\n")
else: else:
f.write(info) f.write(info)
f.close() f.close()

Loading…
Cancel
Save