HADOOP-17703. checkcompatibility.py errors out when specifying annotations. (#3017)

Reviewed-by: Akira Ajisaka <aajisaka@apache.org>
This commit is contained in:
Wei-Chiu Chuang 2021-05-17 20:21:54 -07:00 committed by GitHub
parent eb72628e15
commit 110cda3de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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]