py3: replace pycompat.getenv with encoding.environ.get
pycompat.getenv returns os.getenvb on py3 which is not available on Windows. This patch replaces them with encoding.environ.get and checks to ensure no new instances of os.getenv or os.setenv are introduced.
Showing
- contrib/check-code.py 2 additions, 1 deletioncontrib/check-code.py
- hgext/largefiles/lfutil.py 6 additions, 5 deletionshgext/largefiles/lfutil.py
- mercurial/profiling.py 2 additions, 2 deletionsmercurial/profiling.py
- mercurial/pycompat.py 0 additions, 2 deletionsmercurial/pycompat.py
- mercurial/url.py 3 additions, 3 deletionsmercurial/url.py
Loading
Please register or sign in to comment