예제 #1
0
 def __init__(self, path, **kwargs):
     touch(path)  # Create file if not exists
     self.kwargs = dict(kwargs, **{'ensure_ascii': False})
     self._handle = open(path, 'r+', encoding='utf-8')
예제 #2
0
 def __init__(self, path, **kwargs):
     touch(path)  # Create file if not exists
     self.kwargs = dict(kwargs, **{'ensure_ascii': False})
     self._handle = open(path, 'r+', encoding='utf-8')