comparison hgext/win32mbcs.py @ 30645:7a3e67bfa417

py3: replace os.name with pycompat.osname (part 2 of 2)
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 19 Dec 2016 00:28:12 +0530
parents 6f9fcd29e290
children e995f00a9e9a
comparison
equal deleted inserted replaced
30644:d524c88511a7 30645:7a3e67bfa417
177 _encoding = ui.config('win32mbcs', 'encoding', encoding.encoding) 177 _encoding = ui.config('win32mbcs', 'encoding', encoding.encoding)
178 # fake is only for relevant environment. 178 # fake is only for relevant environment.
179 if _encoding.lower() in problematic_encodings.split(): 179 if _encoding.lower() in problematic_encodings.split():
180 for f in funcs.split(): 180 for f in funcs.split():
181 wrapname(f, wrapper) 181 wrapname(f, wrapper)
182 if os.name == 'nt': 182 if pycompat.osname == 'nt':
183 for f in winfuncs.split(): 183 for f in winfuncs.split():
184 wrapname(f, wrapper) 184 wrapname(f, wrapper)
185 wrapname("mercurial.osutil.listdir", wrapperforlistdir) 185 wrapname("mercurial.osutil.listdir", wrapperforlistdir)
186 # wrap functions to be called with local byte string arguments 186 # wrap functions to be called with local byte string arguments
187 for f in rfuncs.split(): 187 for f in rfuncs.split():