Commit 8d848f8a by sikang

bug fix

parent 0e83446e
...@@ -17,7 +17,7 @@ def process_file_content(path, file_name): ...@@ -17,7 +17,7 @@ def process_file_content(path, file_name):
for (src, dst) in activity_mangle_setting.items(): for (src, dst) in activity_mangle_setting.items():
separator = [" ", ".", "\"", "{", "(", ":"] separator = [" ", ".", "\"", "{", "(", ":"]
for sep in separator: for sep in separator:
file_content = file_content.replace(src + sep, dst + separator) file_content = file_content.replace(src + sep, dst + sep)
ext = os.path.splitext(file_name)[1] ext = os.path.splitext(file_name)[1]
if ext == '.java': if ext == '.java':
......
...@@ -16,7 +16,7 @@ def process_file_content(path, file_name): ...@@ -16,7 +16,7 @@ def process_file_content(path, file_name):
for (src, dst) in activity_mangle_setting.items(): for (src, dst) in activity_mangle_setting.items():
separator = [" ", ".", "\"", "{", "(", ":"] separator = [" ", ".", "\"", "{", "(", ":"]
for sep in separator: for sep in separator:
file_content = file_content.replace(src + sep, dst + separator) file_content = file_content.replace(src + sep, dst + sep)
ext = os.path.splitext(file_name)[1] ext = os.path.splitext(file_name)[1]
if ext == '.java': if ext == '.java':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment