From 110cda3de63e1e483c207085207f5d73d7b8adfd Mon Sep 17 00:00:00 2001 From: Wei-Chiu Chuang Date: Mon, 17 May 2021 20:21:54 -0700 Subject: [PATCH] HADOOP-17703. checkcompatibility.py errors out when specifying annotations. (#3017) Reviewed-by: Akira Ajisaka --- dev-support/bin/checkcompatibility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-support/bin/checkcompatibility.py b/dev-support/bin/checkcompatibility.py index 3db36154ef..e8c0e26a71 100755 --- a/dev-support/bin/checkcompatibility.py +++ b/dev-support/bin/checkcompatibility.py @@ -175,7 +175,7 @@ def run_java_acc(src_name, src_jars, dst_name, dst_jars, annotations): if annotations is not None: annotations_path = os.path.join(get_scratch_dir(), "annotations.txt") - with file(annotations_path, "w") as f: + with open(annotations_path, "w") as f: for ann in annotations: print(ann, file=f) args += ["-annotations-list", annotations_path]