mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add importlib-resources-5.2.2
This commit is contained in:
parent
b09faab852
commit
f238343aa2
40 changed files with 1943 additions and 0 deletions
19
lib/importlib_resources/tests/_compat.py
Normal file
19
lib/importlib_resources/tests/_compat.py
Normal file
|
@ -0,0 +1,19 @@
|
|||
import os
|
||||
|
||||
|
||||
try:
|
||||
from test.support import import_helper # type: ignore
|
||||
except ImportError:
|
||||
# Python 3.9 and earlier
|
||||
class import_helper: # type: ignore
|
||||
from test.support import modules_setup, modules_cleanup
|
||||
|
||||
|
||||
try:
|
||||
# Python 3.10
|
||||
from test.support.os_helper import unlink
|
||||
except ImportError:
|
||||
from test.support import unlink as _unlink
|
||||
|
||||
def unlink(target):
|
||||
return _unlink(os.fspath(target))
|
Loading…
Add table
Add a link
Reference in a new issue