dtc: fix python 3.10 compatibility
authored by Sandro Jäckel and committed by Jonathan Ringer 3 years ago 548ae98b 1d5ed925