1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-07-05 03:50:57 +08:00

Refactor to Python3 style

This commit is contained in:
G_will
2020-12-15 10:50:17 +08:00
committed by you-n-g
parent 192c2dc5ef
commit 3f85af05e5
17 changed files with 23 additions and 24 deletions

View File

@@ -68,7 +68,7 @@ class MemCacheUnit(OrderedDict):
self.popitem(last=False)
class MemCache(object):
class MemCache:
"""Memory cache."""
def __init__(self, mem_cache_size_limit=None, limit_type="length"):
@@ -140,7 +140,7 @@ class MemCacheExpire:
return value, expire
class CacheUtils(object):
class CacheUtils:
LOCK_ID = "QLIB"
@staticmethod
@@ -224,7 +224,7 @@ class CacheUtils(object):
current_cache_wlock.release()
class BaseProviderCache(object):
class BaseProviderCache:
"""Provider cache base class"""
def __init__(self, provider):