[PATCH] py3: use pycompat.getcwd() instead of os.getcwd()

Yuya Nishihara yuya at tcha.org
Tue Nov 22 21:45:19 EST 2016


On Wed, 23 Nov 2016 00:05:45 +0530, Pulkit Goyal wrote:
> # HG changeset patch
> # User Pulkit Goyal <7895pulkit at gmail.com>
> # Date 1479839591 -19800
> #      Wed Nov 23 00:03:11 2016 +0530
> # Node ID a05a33c431e39ea250261287863f4b6ede91ca91
> # Parent  b8e4cce34013b1f564a334465813e8ef171e8834
> py3: use pycompat.getcwd() instead of os.getcwd()
> 
> We have pycompat.getcwd() which returns bytes path on Python 3. This patch
> changes most of the occurences of the os.getcwd() with pycompat one.

LGTM.

Maybe some of getcwd() calls can be replaced by '.', but that isn't scope of
this patch.


More information about the Mercurial-devel mailing list