mirror of
https://github.com/kennethreitz/pipenv.git
synced 2026-06-05 22:50:18 +00:00
Mock finalize
This commit is contained in:
+3
-1
@@ -22,7 +22,9 @@ except ImportError:
|
||||
try:
|
||||
from backports.weakref import finalize
|
||||
except ImportError:
|
||||
pass
|
||||
def finalize(*args, **kwargs):
|
||||
logging.warn('weakref.finalize unavailable, not cleaning...')
|
||||
|
||||
from time import time
|
||||
|
||||
logging.basicConfig(level=logging.ERROR)
|
||||
|
||||
Reference in New Issue
Block a user