diff options
| author | jvoisin | 2016-08-29 22:12:40 +0200 |
|---|---|---|
| committer | jvoisin | 2016-08-29 22:12:40 +0200 |
| commit | 64b667be5d6b36d17839482593ccf2207af14ac9 (patch) | |
| tree | 8ab14777fc5d6a8d9793c2a460ae9e4ea14c2909 /libmat/misc.py | |
| parent | a3c289dea1ceebcc2e624d002ab31deb851a7e3a (diff) | |
Python3, now with less features
I want to release a new version ASAP, so lets ditch some features for
now.
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) |
