2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/tools/net/ynl/lib
Jakub Kicinski 081e8df681 tools: ynl: avoid dict errors on older Python versions
Python 3.9.0 or newer supports combining dicts() with |,
but older versions of Python are still used in the wild
(e.g. on CentOS 8, which goes EoL May 31, 2024).
With Python 3.6.8 we get:

  TypeError: unsupported operand type(s) for |: 'dict' and 'dict'

Use older syntax. Tested with non-legacy families only.

Fixes: f036d936ca ("tools: ynl: Add fixed-header support to ynl")
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: Donald Hunter <donald.hunter@gmail.com>
Tested-by: Donald Hunter <donald.hunter@gmail.com>
Link: https://lore.kernel.org/r/20230524170712.2036128-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-05-25 21:02:43 -07:00
..
__init__.py tools: ynl: move the enum classes to shared code 2023-03-08 23:28:21 -08:00
.gitignore tools: net: add __pycache__ to gitignore 2023-02-24 11:55:47 -08:00
nlspec.py tools: ynl: ethtool testing tool 2023-03-30 23:29:57 -07:00
ynl.py tools: ynl: avoid dict errors on older Python versions 2023-05-25 21:02:43 -07:00