Killing some old code that is never executed.
authorAlec Warner <antarus@gentoo.org>
Sat, 25 Feb 2006 15:46:25 +0000 (15:46 -0000)
committerAlec Warner <antarus@gentoo.org>
Sat, 25 Feb 2006 15:46:25 +0000 (15:46 -0000)
svn path=/main/trunk/; revision=2784

pym/portage.py

index 1671c463fb22d43adac7783ca9539397ccae7cdd..c2e11358083f4f4a51f21bf2b94067f7792bb155 100644 (file)
@@ -1589,21 +1589,7 @@ class config:
                                match = x[mykey]
                                break
 
-               if 0 and match and mykey in ["PORTAGE_BINHOST"]:
-                       # These require HTTP Encoding
-                       try:
-                               import urllib
-                               if urllib.unquote(match) != match:
-                                       writemsg("Note: %s already contains escape codes." % (mykey))
-                               else:
-                                       match = urllib.quote(match)
-                       except SystemExit, e:
-                               raise
-                       except:
-                               writemsg("Failed to fix %s using urllib, attempting to continue.\n"  % (mykey))
-                               pass
-
-               elif mykey == "CONFIG_PROTECT_MASK":
+               if mykey == "CONFIG_PROTECT_MASK":
                        match += " /etc/env.d"
 
                return match