fix: move import re to module level

This commit is contained in:
ykd007 committed 2026-05-14 15:04:20 +05:30
1 parent b4a5a5dc5a
commit 68ef73e528
1 file changed
+1 -2
+1 -2
View File
@@ -1,6 +1,7 @@
import io import io
import os import os
import random import random
import re
from collections.abc import Callable, Iterator from collections.abc import Callable, Iterator
from functools import partial from functools import partial
from typing import Any, TypeVar from typing import Any, TypeVar
@@ -52,8 +53,6 @@ def _normalize_google_sheets_url(url: str) -> str:
Returns the URL unchanged for non-Google-Sheets links. Returns the URL unchanged for non-Google-Sheets links.
""" """
import re
match = re.match( match = re.match(
r"https://docs\.google\.com/spreadsheets/d/([^/]+)(?:/[^?#]*)?(?:[?#].*)?$", r"https://docs\.google\.com/spreadsheets/d/([^/]+)(?:/[^?#]*)?(?:[?#].*)?$",
url, url,