0
我“将”一个Python项目从sublime2转移到eclipse。现在我收到了很多缩进错误。我试图给我们reindent.py脚本来纠正这一点,但我得到了一个错误。Python重新加载错误
reindent -r /project_root
或
python -m reindent -r /project_root
结果:
IndentationError: unindent does not match any outer indentation level
我想递归地再次缩进。
在此先感谢。
如果您正在一个可以轻松安装VIM的系统上运行,Alex Martelli在这个问题上的答案是我已经找到的最快的重新选择替代方法.http://stackoverflow.com/questions/1024435/howto-fix- python-indentation – DeaconDesperado 2013-02-28 19:50:35