From 64b667be5d6b36d17839482593ccf2207af14ac9 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 29 Aug 2016 22:12:40 +0200 Subject: Python3, now with less features I want to release a new version ASAP, so lets ditch some features for now. --- libmat/misc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmat/misc.py') 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): def remove_all(self): """ Remove all comprimizing fields """ - with open(self.filename, 'r') as f: + with open(self.filename, 'rb') as f: decoded = bencode.bdecode(f.read()) cleaned = self.__remove_all_recursively(decoded) -- cgit v1.3