mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Issue #13374: Deprecate os.getcwdb() on Windows
This commit is contained in:
parent
345379a7f8
commit
f7c5ae2257
3 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue