Skip to content

Commit 110cda3

Browse files
authored
HADOOP-17703. checkcompatibility.py errors out when specifying annotations. (#3017)
Reviewed-by: Akira Ajisaka <aajisaka@apache.org>
1 parent eb72628 commit 110cda3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-support/bin/checkcompatibility.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def run_java_acc(src_name, src_jars, dst_name, dst_jars, annotations):
175175

176176
if annotations is not None:
177177
annotations_path = os.path.join(get_scratch_dir(), "annotations.txt")
178-
with file(annotations_path, "w") as f:
178+
with open(annotations_path, "w") as f:
179179
for ann in annotations:
180180
print(ann, file=f)
181181
args += ["-annotations-list", annotations_path]

0 commit comments

Comments
 (0)