Mercurial > public > mercurial-scm > hg-stable
diff mercurial/win32.py @ 39823:24e493ec2229
py3: rename pycompat.getcwd() to encoding.getcwd() (API)
We need to avoid os.getcwdb() on Windows to avoid DeprecationWarnings, and we
need encoding.strtolocal() to encode the result of os.getcwd().
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Fri, 21 Sep 2018 19:48:23 -0400 |
parents | edaa40dc5fe5 |
children | 576474baa209 |
line wrap: on
line diff
--- a/mercurial/win32.py Mon Sep 24 22:46:22 2018 -0400 +++ b/mercurial/win32.py Fri Sep 21 19:48:23 2018 -0400 @@ -584,7 +584,7 @@ # TODO: CreateProcessW on py3? res = _kernel32.CreateProcessA( None, encoding.strtolocal(args), None, None, False, _CREATE_NO_WINDOW, - env, pycompat.getcwd(), ctypes.byref(si), ctypes.byref(pi)) + env, encoding.getcwd(), ctypes.byref(si), ctypes.byref(pi)) if not res: raise ctypes.WinError()