mercurial/py3kcompat.py
changeset 21291 007d276f8c94
parent 17424 e7cfe3587ea4
child 21292 a7a9d84f5e4a
--- a/mercurial/py3kcompat.py	Sat May 10 14:57:25 2014 -0700
+++ b/mercurial/py3kcompat.py	Sat May 10 15:22:04 2014 -0700
@@ -52,13 +52,6 @@
     return ret.encode('utf-8', 'surrogateescape')
 builtins.bytesformatter = bytesformatter
 
-# Create bytes equivalents for os.environ values
-for key in list(os.environ.keys()):
-    # UTF-8 is fine for us
-    bkey = key.encode('utf-8', 'surrogateescape')
-    bvalue = os.environ[key].encode('utf-8', 'surrogateescape')
-    os.environ[bkey] = bvalue
-
 origord = builtins.ord
 def fakeord(char):
     if isinstance(char, int):