diff --git a/challenges/context_managers.py b/challenges/context_managers.py index 81509c5..6051a48 100644 --- a/challenges/context_managers.py +++ b/challenges/context_managers.py @@ -9,6 +9,10 @@ Let's say we use a tempfile to hold the lock: ''' +import os +import tempfile + + def hold_lock(): filename = tempfile.NamedTemporaryFile(delete=False).name with open(filename, 'w') as f: