summaryrefslogtreecommitdiffstats
path: root/Misc/NEWS.d
diff options
context:
space:
mode:
authorFilipe Laíns <lains@riseup.net>2021-10-19 22:19:27 (GMT)
committerGitHub <noreply@github.com>2021-10-19 22:19:27 (GMT)
commit3592980f9122ab0d9ed93711347742d110b749c2 (patch)
treee1e3a4894a60187a5152c2a8c3ae648987f5f75b /Misc/NEWS.d
parentad6d162e518963711d24c80f1b7d6079bd437584 (diff)
downloadcpython-3592980f9122ab0d9ed93711347742d110b749c2.zip
cpython-3592980f9122ab0d9ed93711347742d110b749c2.tar.gz
cpython-3592980f9122ab0d9ed93711347742d110b749c2.tar.bz2
bpo-25625: add contextlib.chdir (GH-28271)
Added non parallel-safe :func:`~contextlib.chdir` context manager to change the current working directory and then restore it on exit. Simple wrapper around :func:`~os.chdir`. Signed-off-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Łukasz Langa <lukasz@langa.pl>
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r--Misc/NEWS.d/next/Library/2021-09-10-12-53-28.bpo-25625.SzcBCw.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-09-10-12-53-28.bpo-25625.SzcBCw.rst b/Misc/NEWS.d/next/Library/2021-09-10-12-53-28.bpo-25625.SzcBCw.rst
new file mode 100644
index 0000000..c001683
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-09-10-12-53-28.bpo-25625.SzcBCw.rst
@@ -0,0 +1,3 @@
+Added non parallel-safe :func:`~contextlib.chdir` context manager to change
+the current working directory and then restore it on exit. Simple wrapper
+around :func:`~os.chdir`.