kopia lustrzana https://github.com/halcy/Mastodon.py
Merge pull request #389 from Konano/patch-1
fix: prevent dynamic changes to keyword_args/poll_paramspull/391/head
commit
6715ff3ebd
|
@ -56,6 +56,6 @@ class Mastodon(Internals):
|
|||
Set multiple to True to allow people to choose more than one answer. Set
|
||||
hide_totals to True to hide the results of the poll until it has expired.
|
||||
"""
|
||||
poll_params = locals()
|
||||
poll_params = locals().copy()
|
||||
del poll_params["self"]
|
||||
return poll_params
|
||||
|
|
|
@ -332,7 +332,7 @@ class Mastodon(Internals):
|
|||
are replying to, removing every other mentioned user from the
|
||||
conversation.
|
||||
"""
|
||||
keyword_args = locals()
|
||||
keyword_args = locals().copy()
|
||||
del keyword_args["self"]
|
||||
del keyword_args["to_status"]
|
||||
del keyword_args["untag"]
|
||||
|
|
Ładowanie…
Reference in New Issue