fix: move import re to module level

This commit is contained in:
ykd007
2026-05-14 15:04:20 +05:30
parent b4a5a5dc5a
commit 68ef73e528
+1 -2
View File
@@ -1,6 +1,7 @@
import io
import os
import random
import re
from collections.abc import Callable, Iterator
from functools import partial
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.
"""
import re
match = re.match(
r"https://docs\.google\.com/spreadsheets/d/([^/]+)(?:/[^?#]*)?(?:[?#].*)?$",
url,