diff options
| author | jvoisin | 2013-10-05 20:46:24 +0100 |
|---|---|---|
| committer | jvoisin | 2013-10-05 20:46:24 +0100 |
| commit | f97b4d88f0254588d11b8760fc6714828af0ef28 (patch) | |
| tree | 3c53c65a86ed931041c18a9f54d0c15d56790d55 /MAT/misc.py | |
| parent | 0f2976458b4baeb418bf9242cbe7dfb96b071440 (diff) | |
mat is now able to check non-writables files
This is an implementaion of this suggestion:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=721572
Diffstat (limited to '')
| -rw-r--r-- | MAT/misc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MAT/misc.py b/MAT/misc.py index 4c104a8..e016d18 100644 --- a/MAT/misc.py +++ b/MAT/misc.py | |||
| @@ -12,8 +12,8 @@ class TorrentStripper(parser.GenericParser): | |||
| 12 | Represent a torrent file with the help | 12 | Represent a torrent file with the help |
| 13 | of the bencode lib from Petru Paler | 13 | of the bencode lib from Petru Paler |
| 14 | ''' | 14 | ''' |
| 15 | def __init__(self, filename, parser, mime, backup, **kwargs): | 15 | def __init__(self, filename, parser, mime, backup, is_writable, **kwargs): |
| 16 | super(TorrentStripper, self).__init__(filename, parser, mime, backup) | 16 | super(TorrentStripper, self).__init__(filename, parser, mime, backup, is_writable, **kwargs) |
| 17 | self.fields = ['comment', 'creation date', 'created by'] | 17 | self.fields = ['comment', 'creation date', 'created by'] |
| 18 | 18 | ||
| 19 | def is_clean(self): | 19 | def is_clean(self): |
