You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to report this guys. What can I say about Python and breaking basic input/output....
$ sudo 2to3 -w /usr/local/bin/asan_symbolize.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Can't parse /usr/local/bin/asan_symbolize.py: ParseError: bad input:
type=22, value=u'=', context=('', (91, 34))
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't parse /usr/local/bin/asan_symbolize.py: ParseError: bad input:
type=22, value=u'=', context=('', (91, 34))
Reported by noloader on 2015-01-15 02:11:52
The text was updated successfully, but these errors were encountered:
Line 91 is the print statement below:
try:
symbolizer_input = '%s %s' % (binary, offset)
if DEBUG:
print(symbolizer_input)
print(symbolizer_input, file=self.pipe.stdin)
while True:
...
So it appears to make this work on some of the Pythons (god knows what they'll break
next):
print(symbolizer_input, file=self.pipe.stdin)
should be changed to:
file=self.pipe.stdin
print(symbolizer_input, file)
The changes need to occur on line 91 and 142.
Originally reported on Google Code with ID 372
Reported by
noloader
on 2015-01-15 02:11:52The text was updated successfully, but these errors were encountered: