Skip to content

Commit 105a189

Browse files
committed
fix: Correct the import
1 parent aa50bb4 commit 105a189

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frformat/get_values_script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import io
33
import os
44
import urllib.parse
5-
import urllib.request
5+
from urllib import request
66

77

88
def get_valid_values(path: str, column: str) -> frozenset[str]:
@@ -14,7 +14,7 @@ def get_valid_values(path: str, column: str) -> frozenset[str]:
1414

1515
if is_url:
1616
try:
17-
response = urllib.request.urlopen(path)
17+
response = request.urlopen(path)
1818
csvfile = io.StringIO(response.read().decode("utf-8"))
1919
except Exception as e:
2020
raise ValueError(f"Failed to fetch CSV from URL: {e} .")

0 commit comments

Comments
 (0)