diff hgext/convert/cvsps.py @ 30643:1c5cbf28f007

py3: replace os.environ with encoding.environ (part 5 of 5)
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 18 Dec 2016 02:08:59 +0530
parents 6f9fcd29e290
children 6e3c79bc9a35
line wrap: on
line diff
--- a/hgext/convert/cvsps.py	Sun Dec 18 02:06:00 2016 +0530
+++ b/hgext/convert/cvsps.py	Sun Dec 18 02:08:59 2016 +0530
@@ -11,6 +11,7 @@
 
 from mercurial.i18n import _
 from mercurial import (
+    encoding,
     hook,
     pycompat,
     util,
@@ -147,7 +148,7 @@
             pass
 
     if not root:
-        root = os.environ.get('CVSROOT', '')
+        root = encoding.environ.get('CVSROOT', '')
 
     # read log cache if one exists
     oldlog = []