From 02978cc55435171f25353191da572a3ad4ccfef7 Mon Sep 17 00:00:00 2001
From: Zac Medico <zmedico@gentoo.org>
Date: Mon, 11 Jan 2010 22:55:53 +0000
Subject: [PATCH] Avoid portage import in order to avoid a potential sandbox
 violation if portage's *.pyc files are stale.

svn path=/main/trunk/; revision=15194
---
 bin/check-implicit-pointer-usage.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/bin/check-implicit-pointer-usage.py b/bin/check-implicit-pointer-usage.py
index e9790c850..179e73d23 100755
--- a/bin/check-implicit-pointer-usage.py
+++ b/bin/check-implicit-pointer-usage.py
@@ -19,8 +19,6 @@ from __future__ import print_function
 import re
 import sys
 
-from portage import _unicode_decode
-
 implicit_pattern = re.compile("([^:]*):(\d+): warning: implicit declaration "
                               + "of function [`']([^']*)'")
 pointer_pattern = re.compile(
@@ -40,7 +38,7 @@ last_implicit_func = ""
 
 while True:
     if sys.hexversion >= 0x3000000:
-        line = _unicode_decode(sys.stdin.buffer.readline())
+        line = sys.stdin.buffer.readline().decode('utf_8', 'replace')
     else:
         line = sys.stdin.readline()
     if line == '':
-- 
2.26.2