Skip to content

Commit

Permalink
Fix encoding again
Browse files Browse the repository at this point in the history
  • Loading branch information
FL550 committed Jul 4, 2023
1 parent 2ce0d8d commit 7ee6c59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="simple_dwd_weatherforecast",
version="2.0.8",
version="2.0.9",
author="Max Fermor",
description="A simple tool to retrieve a weather forecast from DWD OpenData",
long_description=long_description,
Expand Down
8 changes: 4 additions & 4 deletions simple_dwd_weatherforecast/dwdforecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
import math
import json
import csv
import importlib.resources
import importlib

with importlib.resources.open_text(
"simple_dwd_weatherforecast", "stations.json"
) as file:
with importlib.resources.files("simple_dwd_weatherforecast").joinpath(
"stations.json"
).open("r", encoding="utf-8") as file:
stations = json.load(file)


Expand Down
2 changes: 1 addition & 1 deletion simple_dwd_weatherforecast/stations.json

Large diffs are not rendered by default.

0 comments on commit 7ee6c59

Please sign in to comment.