./update.py:63: DeprecationWarning: Positional arguments for 'WikiPage.edit' will no longer be supported in PRAW 8.
Call this function with 'content' as a keyword argument.
reddit.subreddit(subreddit).wiki['config/sidebar'].edit(newsidebar)
我不明白它在告诉我什么。
我试过了..
reddit.subreddit(subreddit).wiki['content'].edit(newsidebar)
但它不起作用,我仍然收到警告。
import warnings
warnings.filterwarnings("ignore",category=DeprecationWarning)