kconfig/annotations.py: support older way of merging dicts
authorAndrea Righi <andrea.righi@canonical.com>
Tue, 23 May 2023 06:28:41 +0000 (08:28 +0200)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 23 May 2023 06:28:41 +0000 (08:28 +0200)
commit88679712d7f1c505e49cbafc63fbb6fb196f458a
tree675b6112a65683eeaede339bf854830c4a619c59
parentc81b7627653e161214663b33d2be8fce42d06648
kconfig/annotations.py: support older way of merging dicts

The '|=' update operator for merging dicts is available starting in
python 3.9 however in focal we have python 3.8, which causes the
annotation parsing script to crash.

Support also the old way of merging dicts available since python 3.5
that uses dict unpacking, e.g. dict1 = {**dict1, **dict2}

Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
kconfig/annotations.py