##// END OF EJS Templates
py3: use pycompat.getcwd instead of os.getcwd
Pulkit Goyal -
r30667:5861bdbe default
parent child Browse files
Show More
@@ -14,7 +14,10 b' import os'
14 14 import random
15 15 import subprocess
16 16
17 from . import encoding
17 from . import (
18 encoding,
19 pycompat,
20 )
18 21
19 22 _kernel32 = ctypes.windll.kernel32
20 23 _advapi32 = ctypes.windll.advapi32
@@ -440,7 +443,7 b' def spawndetached(args):'
440 443
441 444 res = _kernel32.CreateProcessA(
442 445 None, args, None, None, False, _CREATE_NO_WINDOW,
443 env, os.getcwd(), ctypes.byref(si), ctypes.byref(pi))
446 env, pycompat.getcwd(), ctypes.byref(si), ctypes.byref(pi))
444 447 if not res:
445 448 raise ctypes.WinError()
446 449
@@ -31,9 +31,6 b' New errors are not allowed. Warnings are'
31 31 > policy = os.environ.get('HGMODULEPOLICY', policy)
32 32 use encoding.environ instead (py3)
33 33 Skipping mercurial/statprof.py it has no-che?k-code (glob)
34 mercurial/win32.py:443:
35 > env, os.getcwd(), ctypes.byref(si), ctypes.byref(pi))
36 use pycompat.getcwd instead (py3)
37 34 [1]
38 35
39 36 @commands in debugcommands.py should be in alphabetical order.
General Comments 0
You need to be logged in to leave comments. Login now