implementing FileReader/FileWriter (#2)

This commit is contained in:
Romain Dorgueil
2016-12-28 10:54:50 +01:00
parent b409391666
commit 2b8216ec0d
12 changed files with 207 additions and 40 deletions

View File

@ -3,11 +3,11 @@ import json
from .file import FileWriter
from bonobo.util.lifecycle import with_context
__all__ = ['JsonFileWriter', ]
__all__ = ['JsonWriter', ]
@with_context
class JsonFileWriter(FileWriter):
class JsonWriter(FileWriter):
def __init__(self, path_or_buf):
super().__init__(path_or_buf, eol=',\n')