diff --git a/mastodon/polls.py b/mastodon/polls.py index 20a1d87..013dfe9 100644 --- a/mastodon/polls.py +++ b/mastodon/polls.py @@ -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 diff --git a/mastodon/statuses.py b/mastodon/statuses.py index 74d8b03..b1b4356 100644 --- a/mastodon/statuses.py +++ b/mastodon/statuses.py @@ -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"]