Skip to content

Commit

Permalink
Use Path.open() over built-in open()
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jun 19, 2024
1 parent 491223c commit c5d4570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aross_stations_db/source_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def get_events(events_dir: Path) -> Iterator[dict]:
for event_fp in get_event_files(events_dir):
station_id = event_fp.stem.split(".")[0]

with open(event_fp) as event_file:
with event_fp.open() as event_file:
events = list(csv.DictReader(event_file))

for event in events:
Expand Down

0 comments on commit c5d4570

Please sign in to comment.