mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Fallback to importlib_resources on python 3.6
This commit is contained in:
@@ -8,7 +8,10 @@ import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
from functools import partial
|
||||
from importlib.resources import read_binary
|
||||
try:
|
||||
from importlib.resources import read_binary
|
||||
except ImportError:
|
||||
from importlib_resources import read_binary
|
||||
|
||||
from kitty.constants import is_macos
|
||||
from kitty.fast_data_types import (
|
||||
|
||||
Reference in New Issue
Block a user