From: Zac Medico Date: Fri, 29 Jan 2010 18:48:08 +0000 (-0000) Subject: Avoid portage import in order to avoid a potential sandbox violation if X-Git-Tag: v2.1.7.17~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b5f19ef7d57684a01f2a2c4395faa600251adf54;p=portage.git Avoid portage import in order to avoid a potential sandbox violation if portage's *.pyc files are stale. (trunk r15194) svn path=/main/branches/2.1.7/; revision=15248 --- 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 == '':