aboutsummaryrefslogtreecommitdiff
path: root/gn3/db/metadata_audit.py
diff options
context:
space:
mode:
authorArun Isaac2021-11-10 15:47:20 +0530
committerBonfaceKilz2021-11-13 08:00:40 +0300
commit0059de6c028996c9b21a833f186ba7df4899fa2d (patch)
treefc686e09418ccd11775ecc8ede2da78979e37278 /gn3/db/metadata_audit.py
parent85405fe6875358d3bb98b03621271d5909dd393f (diff)
downloadgenenetwork3-0059de6c028996c9b21a833f186ba7df4899fa2d.tar.gz
Do not use dangerous default argument [].
Default arguments get evaluated only once when the function is defined, and are then shared across all instances of the function. If the argument is then mutated, this can cause hard to find bugs. See https://docs.python.org/3/tutorial/controlflow.html#default-argument-values * gn3/authentication.py (create_group): Do not use [] as the default argument.
Diffstat (limited to 'gn3/db/metadata_audit.py')
0 files changed, 0 insertions, 0 deletions