Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

Update cms_toolbars.py #536

Closed
wants to merge 1 commit into from
Closed

Update cms_toolbars.py #536

wants to merge 1 commit into from

Conversation

vrac10
Copy link

@vrac10 vrac10 commented Jan 18, 2023

Description

Currently, the default argument list 'action_args' accumulates the data from previous executions. This pull request makes sure that the default argument always has an empty list as intended.

Fixes #535

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

  • Calling the function again and testing it shows that the previous execution data isn't accumulated in the default
    parameter

Checklist:

  • My code follows the style guidelines of this project
  • I have not added a commit to any .db files as part of my pull request
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@botanicvelious
Copy link
Collaborator

@warthog9 what do you think?

@terriko
Copy link
Member

terriko commented Aug 26, 2024

Closing in preparation for archiving this repo.

@terriko terriko closed this Aug 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default argument initialization with list found which is a loop hole in python
3 participants