You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by we...@apache.org on 2021/05/18 03:37:39 UTC

[hadoop] branch branch-3.3 updated: HADOOP-17703. checkcompatibility.py errors out when specifying annotations. (#3017)

This is an automated email from the ASF dual-hosted git repository.

weichiu pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 0df4743  HADOOP-17703. checkcompatibility.py errors out when specifying annotations. (#3017)
0df4743 is described below

commit 0df47432847e1a8b9f3cd31d60b3003fc5a8bc9b
Author: Wei-Chiu Chuang <we...@apache.org>
AuthorDate: Mon May 17 20:21:54 2021 -0700

    HADOOP-17703. checkcompatibility.py errors out when specifying annotations. (#3017)
    
    Reviewed-by: Akira Ajisaka <aa...@apache.org>
    (cherry picked from commit 110cda3de63e1e483c207085207f5d73d7b8adfd)
---
 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 3db3615..e8c0e26 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]

---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org