Commit b0e69b5c authored by Cody Zacharias's avatar Cody Zacharias Committed by GitHub

sys.stdout

parent 5a5189a2
...@@ -10,9 +10,9 @@ class RecycleObject(object): ...@@ -10,9 +10,9 @@ class RecycleObject(object):
@contextlib.contextmanager @contextlib.contextmanager
def nostdout(): def nostdout():
savestdout = sys.stdout savestdout = sys.stdout
stdout = RecycleObject() sys.stdout = RecycleObject()
yield yield
stdout = savestdout sys.stdout = savestdout
def weekday(day): def weekday(day):
weekdays = { weekdays = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment