* [gentoo-commits] portage r15194 - main/trunk/bin
@ 2010-01-11 22:55 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2010-01-11 22:55 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2010-01-11 22:55:53 +0000 (Mon, 11 Jan 2010)
New Revision: 15194
Modified:
main/trunk/bin/check-implicit-pointer-usage.py
Log:
Avoid portage import in order to avoid a potential sandbox violation if
portage's *.pyc files are stale.
Modified: main/trunk/bin/check-implicit-pointer-usage.py
===================================================================
--- main/trunk/bin/check-implicit-pointer-usage.py 2010-01-11 19:45:03 UTC (rev 15193)
+++ main/trunk/bin/check-implicit-pointer-usage.py 2010-01-11 22:55:53 UTC (rev 15194)
@@ -19,8 +19,6 @@
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 @@
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 == '':
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-11 23:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-11 22:55 [gentoo-commits] portage r15194 - main/trunk/bin Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox