projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
"Fix" a flaky test and cleanup an unused import.
[python_utils.git]
/
persistent.py
diff --git
a/persistent.py
b/persistent.py
index 2751572553ac7c20c7663974c13e17b13f0ab037..8829d6de657c213845356b7c32caa2a644a1eb54 100644
(file)
--- a/
persistent.py
+++ b/
persistent.py
@@
-7,7
+7,6
@@
import enum
import functools
import logging
from typing import Any
import functools
import logging
from typing import Any
-import warnings
import file_utils
import file_utils
@@
-146,7
+145,6
@@
class persistent_autoloaded_singleton(object):
if not self.instance:
msg = 'Loading from cache failed.'
logger.warning(msg)
if not self.instance:
msg = 'Loading from cache failed.'
logger.warning(msg)
- warnings.warn(msg)
logger.debug(f'Attempting to instantiate {cls.__name__} directly.')
self.instance = cls(*args, **kwargs)
else:
logger.debug(f'Attempting to instantiate {cls.__name__} directly.')
self.instance = cls(*args, **kwargs)
else: