yadp_builder.py: upgrade to python3 version
In Feb 2021, the script used for building YADP configs
was migrated to python3 on ci.l.o, but the changes never
made it to the TrustedFirmware servers.
This change updates the yadp-builder.py script to be
in sync with linaro's.
Signed-off-by: Kelley Spoon <kelley.spoon@linaro.org>
Change-Id: I988665850799619f6018ef42b18b1a180829b76f
diff --git a/yadp_builder.py b/yadp_builder.py
index 8e9bf06..1d84154 100755
--- a/yadp_builder.py
+++ b/yadp_builder.py
@@ -1,3 +1,5 @@
+#!/usr/bin/python3
+
import argparse
import yaml
import os
@@ -48,7 +50,7 @@
return result
else:
- print "Error:: unrecognised node type in !include statement"
+ print("Error:: unrecognised node type in !include statement")
raise yaml.constructor.ConstructorError