Skip to content

Commit f14e159

Browse files
committed
doc [ci skip]
1 parent 4981790 commit f14e159

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

py/_path/local.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,10 @@ def chdir(self):
574574

575575
@contextmanager
576576
def as_cwd(self):
577-
""" return context manager which changes to current dir during the
578-
managed "with" context. On __enter__ it returns the old dir.
577+
"""
578+
Return a context manager, which changes to the path's dir during the
579+
managed "with" context.
580+
On __enter__ it returns the old dir, which might be ``None``.
579581
"""
580582
old = self.chdir()
581583
try:

0 commit comments

Comments
 (0)