Mercurial > hg
diff mercurial/commandserver.py @ 39818: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 | afc4ad706f9c |
children | efbf7de09d2a |
line wrap: on
line diff
--- a/mercurial/commandserver.py Mon Sep 24 22:46:22 2018 -0400 +++ b/mercurial/commandserver.py Fri Sep 21 19:48:23 2018 -0400 @@ -26,7 +26,6 @@ from . import ( encoding, error, - pycompat, util, ) from .utils import ( @@ -161,7 +160,7 @@ based stream to fout. """ def __init__(self, ui, repo, fin, fout): - self.cwd = pycompat.getcwd() + self.cwd = encoding.getcwd() # developer config: cmdserver.log logpath = ui.config("cmdserver", "log")