1 |
Author: zmedico |
2 |
Date: 2010-01-29 18:48:08 +0000 (Fri, 29 Jan 2010) |
3 |
New Revision: 15248 |
4 |
|
5 |
Modified: |
6 |
main/branches/2.1.7/bin/check-implicit-pointer-usage.py |
7 |
Log: |
8 |
Avoid portage import in order to avoid a potential sandbox violation if |
9 |
portage's *.pyc files are stale. (trunk r15194) |
10 |
|
11 |
Modified: main/branches/2.1.7/bin/check-implicit-pointer-usage.py |
12 |
=================================================================== |
13 |
--- main/branches/2.1.7/bin/check-implicit-pointer-usage.py 2010-01-29 18:47:59 UTC (rev 15247) |
14 |
+++ main/branches/2.1.7/bin/check-implicit-pointer-usage.py 2010-01-29 18:48:08 UTC (rev 15248) |
15 |
@@ -19,8 +19,6 @@ |
16 |
import re |
17 |
import sys |
18 |
|
19 |
-from portage import _unicode_decode |
20 |
- |
21 |
implicit_pattern = re.compile("([^:]*):(\d+): warning: implicit declaration " |
22 |
+ "of function [`']([^']*)'") |
23 |
pointer_pattern = re.compile( |
24 |
@@ -40,7 +38,7 @@ |
25 |
|
26 |
while True: |
27 |
if sys.hexversion >= 0x3000000: |
28 |
- line = _unicode_decode(sys.stdin.buffer.readline()) |
29 |
+ line = sys.stdin.buffer.readline().decode('utf_8', 'replace') |
30 |
else: |
31 |
line = sys.stdin.readline() |
32 |
if line == '': |