Show More
@@ -229,6 +229,13 b' class abstractvfs(object):' | |||||
229 | finally: |
|
229 | finally: | |
230 | fp.close() |
|
230 | fp.close() | |
231 |
|
231 | |||
|
232 | def writelines(self, path, data, mode='wb', notindexed=False): | |||
|
233 | fp = self(path, mode=mode, notindexed=notindexed) | |||
|
234 | try: | |||
|
235 | return fp.writelines(data) | |||
|
236 | finally: | |||
|
237 | fp.close() | |||
|
238 | ||||
232 | def append(self, path, data): |
|
239 | def append(self, path, data): | |
233 | fp = self(path, 'ab') |
|
240 | fp = self(path, 'ab') | |
234 | try: |
|
241 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now