Mercurial > libervia-backend
comparison src/plugins/plugin_misc_file.py @ 1553:ebf97c1ac14a
fixed bad inheritance of SatFile
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 02 Nov 2015 22:02:41 +0100 |
parents | 49d33cb48207 |
children | 1f7a34d499e0 |
comparison
equal
deleted
inserted
replaced
1552:e0bde0d0b321 | 1553:ebf97c1ac14a |
---|---|
35 "description": _("""File Tansfer Management: | 35 "description": _("""File Tansfer Management: |
36 This plugin manage the various ways of sending a file, and choose the best one.""") | 36 This plugin manage the various ways of sending a file, and choose the best one.""") |
37 } | 37 } |
38 | 38 |
39 | 39 |
40 class SatFile(file): | 40 class SatFile(object): |
41 """A file-like object to have high level files manipulation""" | 41 """A file-like object to have high level files manipulation""" |
42 # TODO: manage "with" statement | 42 # TODO: manage "with" statement |
43 | 43 |
44 def __init__(self, host, path, mode='r', uid=None, size=None, profile=C.PROF_KEY_NONE): | 44 def __init__(self, host, path, mode='r', uid=None, size=None, profile=C.PROF_KEY_NONE): |
45 """ | 45 """ |