diff options
Diffstat (limited to 'libmat/misc.py')
| -rw-r--r-- | libmat/misc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmat/misc.py b/libmat/misc.py index 0bcb25e..d0aada7 100644 --- a/libmat/misc.py +++ b/libmat/misc.py | |||
| @@ -66,7 +66,7 @@ class TorrentStripper(parser.GenericParser): | |||
| 66 | def remove_all(self): | 66 | def remove_all(self): |
| 67 | """ Remove all comprimizing fields | 67 | """ Remove all comprimizing fields |
| 68 | """ | 68 | """ |
| 69 | with open(self.filename, 'r') as f: | 69 | with open(self.filename, 'rb') as f: |
| 70 | decoded = bencode.bdecode(f.read()) | 70 | decoded = bencode.bdecode(f.read()) |
| 71 | 71 | ||
| 72 | cleaned = self.__remove_all_recursively(decoded) | 72 | cleaned = self.__remove_all_recursively(decoded) |
