Commits

Jason R. Coombs committed 5e11b91

Added context module

Comments (0)

Files changed (2)

 Changes
 -------
 
+6.1
+~~~
+
+* Added `context` module, with a null_context context manager. It is suitable
+  for taking the place of a real context when no context is needed.
+
 6.0
 ~~~
 

jaraco/util/context.py

+import contextlib
+
+@contextlib.contextmanager
+def null_context():
+	yield