summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-16 22:43:07 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-16 22:43:07 (GMT)
commitf7c5ae225725893fe1cc0bb2b97d89182eac2c2e (patch)
treec74c198e5ca630a58850e0f5ddc6108e7ab252d7 /Modules/posixmodule.c
parent345379a7f8ae2d8f5151eacc0eaa9f3902e76c8e (diff)
downloadcpython-f7c5ae225725893fe1cc0bb2b97d89182eac2c2e.zip
cpython-f7c5ae225725893fe1cc0bb2b97d89182eac2c2e.tar.gz
cpython-f7c5ae225725893fe1cc0bb2b97d89182eac2c2e.tar.bz2
Issue #13374: Deprecate os.getcwdb() on Windows
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 9012e39..078010b 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2410,6 +2410,9 @@ posix_getcwd(int use_bytes)
if (wbuf2 != wbuf) free(wbuf2);
return resobj;
}
+
+ if (win32_warn_bytes_api())
+ return NULL;
#endif
Py_BEGIN_ALLOW_THREADS