##// END OF EJS Templates
util: enhance `nullcontextmanager` to be able to return __enter__ result...
Manuel Jacob -
r45706:a0791bfd default
parent child Browse files
Show More
@@ -1381,8 +1381,8 b' def acceptintervention(tr=None):'
1381
1381
1382
1382
1383 @contextlib.contextmanager
1383 @contextlib.contextmanager
1384 def nullcontextmanager():
1384 def nullcontextmanager(enter_result=None):
1385 yield
1385 yield enter_result
1386
1386
1387
1387
1388 class _lrucachenode(object):
1388 class _lrucachenode(object):
General Comments 0
You need to be logged in to leave comments. Login now