diff options
| author | jvoisin | 2018-07-10 21:30:38 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-10 21:30:38 +0200 |
| commit | 5a7c7f35f7d526a8c0ed49da12e4efc5e9dd6582 (patch) | |
| tree | e9af668c60f2b6b16641f5bbd106b9ff7d27b3b9 /libmat2/torrent.py | |
| parent | d5861e46537f3e94abd26f63a3a7ad5b69d25e77 (diff) | |
Remove `print` from libmat, and use the `logging` module instead
This should close #28
Diffstat (limited to 'libmat2/torrent.py')
| -rw-r--r-- | libmat2/torrent.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libmat2/torrent.py b/libmat2/torrent.py index ca7715a..90f83f8 100644 --- a/libmat2/torrent.py +++ b/libmat2/torrent.py | |||
| @@ -3,6 +3,8 @@ from typing import Union, Tuple, Dict | |||
| 3 | 3 | ||
| 4 | from . import abstract | 4 | from . import abstract |
| 5 | 5 | ||
| 6 | logging.basicConfig(level=logging.ERROR) | ||
| 7 | |||
| 6 | 8 | ||
| 7 | class TorrentParser(abstract.AbstractParser): | 9 | class TorrentParser(abstract.AbstractParser): |
| 8 | mimetypes = {'application/x-bittorrent', } | 10 | mimetypes = {'application/x-bittorrent', } |
