HomeVyOS Platform

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

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
rVYOSONEX682f8ffdd7cd: T588: Configurable Negative TTL caching in forwarder
Branches
Loading...
Tags
Loading...