Skip to content

Commit

Permalink
python 3.7 syntax, not 3.9+ for functools caching
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonBurns authored Jul 27, 2023
1 parent 06e09c7 commit 9f8bd15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rmgpy/yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

import os
import yaml
from functools import cache
from functools import lru_cache

from rmgpy.chemkin import load_chemkin_file
from rmgpy.species import Species
Expand Down Expand Up @@ -105,7 +105,7 @@ def get_radicals(spc):
else:
return spc.molecule[0].multiplicity-1

@cache
@lru_cache(maxsize=None)
def obj_to_dict(obj, spcs, names=None, label="solvent"):
result_dict = dict()
if isinstance(obj, Species):
Expand Down

0 comments on commit 9f8bd15

Please sign in to comment.