Mercurial > hg
diff hgext/win32mbcs.py @ 32208:d74b0cff94a9
osutil: proxy through util (and platform) modules (API)
See the previous commit for why. Marked as API change since osutil.listdir()
seems widely used in third-party extensions.
The win32mbcs extension is updated to wrap both util. and windows. aliases.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 26 Apr 2017 22:26:28 +0900 |
parents | e995f00a9e9a |
children | 3a755652ce3a |
line wrap: on
line diff
--- a/hgext/win32mbcs.py Wed Apr 26 22:05:59 2017 +0900 +++ b/hgext/win32mbcs.py Wed Apr 26 22:26:28 2017 +0900 @@ -182,7 +182,8 @@ if pycompat.osname == 'nt': for f in winfuncs.split(): wrapname(f, wrapper) - wrapname("mercurial.osutil.listdir", wrapperforlistdir) + wrapname("mercurial.util.listdir", wrapperforlistdir) + wrapname("mercurial.windows.listdir", wrapperforlistdir) # wrap functions to be called with local byte string arguments for f in rfuncs.split(): wrapname(f, reversewrapper)