mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-23 21:35:05 +00:00
Merge branch 'feature/UpdatePkgResources' into dev
This commit is contained in:
commit
be24e6169b
3 changed files with 376 additions and 214 deletions
|
@ -1,6 +1,7 @@
|
||||||
### 3.33.0 (2024-0x-xx xx:xx:00 UTC)
|
### 3.33.0 (2024-0x-xx xx:xx:00 UTC)
|
||||||
|
|
||||||
* Update filelock 3.14.0 (8556141) to 3.15.4 (9a979df)
|
* Update filelock 3.14.0 (8556141) to 3.15.4 (9a979df)
|
||||||
|
* Update package resource API 68.2.2 (8ad627d) to 70.1.1 (222ebf9)
|
||||||
* Update urllib3 2.2.1 (54d6edf) to 2.2.2 (27e2a5c)
|
* Update urllib3 2.2.1 (54d6edf) to 2.2.2 (27e2a5c)
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load diff
9
lib/pkg_resources/extern/__init__.py
vendored
9
lib/pkg_resources/extern/__init__.py
vendored
|
@ -1,8 +1,9 @@
|
||||||
|
from __future__ import annotations
|
||||||
from importlib.machinery import ModuleSpec
|
from importlib.machinery import ModuleSpec
|
||||||
import importlib.util
|
import importlib.util
|
||||||
import sys
|
import sys
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
from typing import Iterable, Optional, Sequence
|
from typing import Iterable, Sequence
|
||||||
|
|
||||||
|
|
||||||
class VendorImporter:
|
class VendorImporter:
|
||||||
|
@ -15,7 +16,7 @@ class VendorImporter:
|
||||||
self,
|
self,
|
||||||
root_name: str,
|
root_name: str,
|
||||||
vendored_names: Iterable[str] = (),
|
vendored_names: Iterable[str] = (),
|
||||||
vendor_pkg: Optional[str] = None,
|
vendor_pkg: str | None = None,
|
||||||
):
|
):
|
||||||
self.root_name = root_name
|
self.root_name = root_name
|
||||||
self.vendored_names = set(vendored_names)
|
self.vendored_names = set(vendored_names)
|
||||||
|
@ -65,8 +66,8 @@ class VendorImporter:
|
||||||
def find_spec(
|
def find_spec(
|
||||||
self,
|
self,
|
||||||
fullname: str,
|
fullname: str,
|
||||||
path: Optional[Sequence[str]] = None,
|
path: Sequence[str] | None = None,
|
||||||
target: Optional[ModuleType] = None,
|
target: ModuleType | None = None,
|
||||||
):
|
):
|
||||||
"""Return a module spec for vendored names."""
|
"""Return a module spec for vendored names."""
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Reference in a new issue