mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Remove Python 3.9 Pattern typehints
This commit is contained in:
parent
ced8b9a2d0
commit
5f527bc697
@ -132,7 +132,7 @@ class IliasPage:
|
|||||||
# on the page, but defined in a JS object inside a script tag, passed to the player
|
# on the page, but defined in a JS object inside a script tag, passed to the player
|
||||||
# library.
|
# library.
|
||||||
# We do the impossible and RegEx the stream JSON object out of the page's HTML source
|
# We do the impossible and RegEx the stream JSON object out of the page's HTML source
|
||||||
regex: re.Pattern[str] = re.compile(
|
regex = re.compile(
|
||||||
r"({\"streams\"[\s\S]+?),\s*{\"paella_config_file", re.IGNORECASE
|
r"({\"streams\"[\s\S]+?),\s*{\"paella_config_file", re.IGNORECASE
|
||||||
)
|
)
|
||||||
json_match = regex.search(str(self._soup))
|
json_match = regex.search(str(self._soup))
|
||||||
|
@ -2,8 +2,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from pathlib import PurePath
|
from pathlib import PurePath
|
||||||
from re import Pattern
|
from typing import Awaitable, List, Optional, Pattern, Set, Union
|
||||||
from typing import Awaitable, List, Optional, Set, Union
|
|
||||||
from urllib.parse import urljoin
|
from urllib.parse import urljoin
|
||||||
|
|
||||||
from bs4 import BeautifulSoup, Tag
|
from bs4 import BeautifulSoup, Tag
|
||||||
|
Loading…
Reference in New Issue
Block a user