From 5391bcbc86cb86d26c3928ea85f8a9c38ae3c9de Mon Sep 17 00:00:00 2001 From: Dan Date: Thu, 1 Apr 2021 11:26:31 -0400 Subject: [PATCH] Add a documentation string for working_directory(). --- vimgolf/vimgolf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vimgolf/vimgolf.py b/vimgolf/vimgolf.py index cd5a5f6..f02dc97 100644 --- a/vimgolf/vimgolf.py +++ b/vimgolf/vimgolf.py @@ -276,6 +276,7 @@ def find_executable(executable): @contextlib.contextmanager def working_directory(directory): + """A context manager that temporarily changes the working directory.""" existing = os.getcwd() os.chdir(directory) try: