使用Python 2to3时出现转换错误

时间:2017-08-27 07:50:59

标签: python python-2.7 python-2to3

运行此cmd:

2to3  util.py -v -p -w

我有这样的信息:

RefactoringTool: Adding transformation: zip
RefactoringTool: Can't parse util.py: ParseError: bad input: type=1, value='f', context=(' ', (150, 11))
RefactoringTool: No changes in util.py
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't parse util.py: ParseError: bad input: type=1, value='f', context=(' ', (150, 11))

1)如何识别相关文件的行?

0 个答案:

没有答案