json object writing ...

This commit is contained in:
Steve Nyemba 2020-08-11 17:20:46 -05:00
parent 4a985e82dc
commit 5676c4991f
2 changed files with 2 additions and 2 deletions

View File

@ -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"]}

View File

@ -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()