Commit 4d6939ff authored by Stefan Behnel's avatar Stefan Behnel

Reverse the tuple item order in the utility code caching key to move the most...

Reverse the tuple item order in the utility code caching key to move the most selective item first (just in case if we ever get dict collisions).
parent dccf5885
......@@ -408,7 +408,7 @@ class UtilityCodeBase(object):
"""
Calls .load(), but using a per-type cache based on utility name and file name.
"""
key = (cls, from_file, utility_code_name)
key = (utility_code_name, from_file, cls)
try:
return __cache[key]
except KeyError:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment