Skip to content

Commit 9f8bd15

Browse files
authored
python 3.7 syntax, not 3.9+ for functools caching
1 parent 06e09c7 commit 9f8bd15

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rmgpy/yml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
import os
3636
import yaml
37-
from functools import cache
37+
from functools import lru_cache
3838

3939
from rmgpy.chemkin import load_chemkin_file
4040
from rmgpy.species import Species
@@ -105,7 +105,7 @@ def get_radicals(spc):
105105
else:
106106
return spc.molecule[0].multiplicity-1
107107

108-
@cache
108+
@lru_cache(maxsize=None)
109109
def obj_to_dict(obj, spcs, names=None, label="solvent"):
110110
result_dict = dict()
111111
if isinstance(obj, Species):

0 commit comments

Comments
 (0)