Add support for running on Python 3.8
This commit is contained in:
parent
1f618a4152
commit
de6ee523b0
1 changed files with 6 additions and 1 deletions
|
|
@ -18,7 +18,12 @@ import time
|
|||
import traceback
|
||||
|
||||
from collections import OrderedDict
|
||||
from functools import cache
|
||||
|
||||
try:
|
||||
from functools import cache
|
||||
except ImportError:
|
||||
# Assuming Python is < 3.9
|
||||
from functools import lru_cache as cache
|
||||
|
||||
import requests
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue