From e8c1bb0e3c4cae579e81ce6a4b01b829900ff922 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sun, 3 Feb 2019 09:43:27 +0000 Subject: Whenever possible, use bwrap for subprocesses This should closes #90 --- libmat2/torrent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libmat2/torrent.py') diff --git a/libmat2/torrent.py b/libmat2/torrent.py index 4d6c1e0..c006f9c 100644 --- a/libmat2/torrent.py +++ b/libmat2/torrent.py @@ -3,6 +3,7 @@ from typing import Union, Tuple, Dict from . import abstract + class TorrentParser(abstract.AbstractParser): mimetypes = {'application/x-bittorrent', } whitelist = {b'announce', b'announce-list', b'info'} @@ -32,7 +33,7 @@ class TorrentParser(abstract.AbstractParser): return True -class _BencodeHandler(object): +class _BencodeHandler(): """ Since bencode isn't that hard to parse, MAT2 comes with its own parser, based on the spec -- cgit v1.3