Skip to content

Commit

Permalink
replace open with Path.open function
Browse files Browse the repository at this point in the history
  • Loading branch information
hamshkhawar committed Apr 26, 2024
1 parent b5a5982 commit 33e8e46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_generate_patterns(
fg.generate_patterns(create_data, output_directory, pattern, chunk_size, group_by)

files = []
with open(output_directory.joinpath("file_patterns.json"), "r") as read_file:
with Path.open(output_directory.joinpath("file_patterns.json"), "r") as read_file:
data = json.load(read_file)
file_pattern = data["filePatterns"]
files.append(file_pattern)
Expand Down

0 comments on commit 33e8e46

Please sign in to comment.