HomeVyOS Platform

Use normal assignment by key instead of setdefault() everywhere.
4843246f721fUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Use normal assignment by key instead of setdefault() everywhere.

The setdefault() dict object method updates the value only if it's not
already set, so it's useless for what we want to do, despite its deceptive name.

Details

Provenance
dmbaturinAuthored on May 23 2018, 2:19 PM
Parents
rVYOSONEXe2a617d29b48: T588: Configurable Negative TTL caching in forwarder
Branches
Loading...
Tags
Loading...