Source code for misc.warning_filter
# coding=utf-8
import warnings
[docs]def ignore():
"""Suppresses some warnings of praw."""
# Even if, the bot is called MassdropBot. Jesus.
warnings.filterwarnings('ignore', 'The keyword `bot` in your user_agent may be problematic.')
# And the socket gets closed.
warnings.filterwarnings('ignore', 'unclosed*')