We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2117781 commit ea8f967Copy full SHA for ea8f967
1 file changed
update.py
@@ -10,6 +10,7 @@
10
import typing
11
12
import click
13
+
14
import requests
15
16
IANA_LATEST_LOCATION = "https://www.iana.org/time-zones/repository/tzdata-latest.tar.gz"
@@ -104,7 +105,7 @@ def create_package(version: str, zoneinfo_dir: pathlib.Path):
104
105
# Generate the base __init__.py from a template
106
with open(TEMPLATES_DIR / "__init__.py.in", "r") as f_in:
107
contents = f_in.read()
- contents = contents.replace("%%IANA_VERSION%%", version)
108
+ contents = contents.replace("%%IANA_VERSION%%", f'"{version}"')
109
110
with open(target_dir / "__init__.py", "w") as f_out:
111
f_out.write(contents)
0 commit comments