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

kirs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-seatunnel.git


The following commit(s) were added to refs/heads/dev by this push:
     new 3fcc7c377 [Hotfix][CI] Fix update modules check for CI (#3630)
3fcc7c377 is described below

commit 3fcc7c377a159ad2fc880f1019acc1a066461839
Author: TaoZex <[email protected]>
AuthorDate: Sat Dec 3 11:57:10 2022 +0800

    [Hotfix][CI] Fix update modules check for CI (#3630)
    
    * [Hotfix][CI] Fix update modules check for CI
    
    * update code
    
    * Update update_modules_check.py
---
 tools/update_modules_check/update_modules_check.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/update_modules_check/update_modules_check.py 
b/tools/update_modules_check/update_modules_check.py
index 3c91a124b..b9115b67f 100644
--- a/tools/update_modules_check/update_modules_check.py
+++ b/tools/update_modules_check/update_modules_check.py
@@ -64,10 +64,10 @@ def replace_comma_to_commacolon(modules_str):
     print(modules_str)
 
 def get_sub_modules(file):
-    f = open(file, 'rb')
+    f = open(file, 'r')
     output = ""
     for line in f.readlines():
-        line = line.decode().replace(" ","")
+        line = line.replace(" ","")
         if line.startswith("<string>"):
             line = line.replace(" ","").replace("<string>", 
"").replace("</string>", "").replace("\n", "")
             output = output + "," + line
@@ -85,7 +85,7 @@ def get_dependency_tree_includes(modules_str):
     print(output)
 
 def get_final_it_modules(file):
-    f = open(file, 'rb')
+    f = open(file, 'r')
     output = ""
     for line in f.readlines():
         if line.startswith("org.apache.seatunnel"):
@@ -98,7 +98,7 @@ def get_final_it_modules(file):
     print(output)
 
 def get_final_ut_modules(file):
-    f = open(file, 'rb')
+    f = open(file, 'r')
     output = ""
     for line in f.readlines():
         if line.startswith("org.apache.seatunnel"):

Reply via email to