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
|
import traceback
|
||||||
|
|
||||||
from collections import OrderedDict
|
from collections import OrderedDict
|
||||||
|
|
||||||
|
try:
|
||||||
from functools import cache
|
from functools import cache
|
||||||
|
except ImportError:
|
||||||
|
# Assuming Python is < 3.9
|
||||||
|
from functools import lru_cache as cache
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue