Skip to content

Commit

Permalink
Update _apply_function_credential_config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
divijmuthu authored Oct 22, 2024
1 parent f4f6d73 commit b328141
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def process_file(input_file_path, output_file_path):
# lines = f.readlines()
with jsonlines.open(input_file_path) as reader:
lines = [obj for obj in reader]
reader.close()
for line in lines:
try:
data = json.loads(line) # Parse each line as a JSON object
Expand All @@ -61,6 +62,7 @@ def process_file(input_file_path, output_file_path):
writer.write(modified_line)
# if i < len(modified_data) - 1: # Check against the length of modified_data
# f.write("\n")
writer.close()


def process_dir(input_dir, output_dir):
Expand Down

0 comments on commit b328141

Please sign in to comment.