commit | f7c5ae225725893fe1cc0bb2b97d89182eac2c2e | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Wed Nov 16 23:43:07 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Wed Nov 16 23:43:07 2011 +0100 |
tree | c74c198e5ca630a58850e0f5ddc6108e7ab252d7 | |
parent | 345379a7f8ae2d8f5151eacc0eaa9f3902e76c8e [diff] [blame] |
Issue #13374: Deprecate os.getcwdb() on Windows
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 @@ if (wbuf2 != wbuf) free(wbuf2); return resobj; } + + if (win32_warn_bytes_api()) + return NULL; #endif Py_BEGIN_ALLOW_THREADS