Quote:
Originally Posted by BetterRed
Not sure I understand which tab caused the problem at 532, not that that matters. I did notice tabs and 4 spaces were intermingled throughout that module, which looked rather 'unpretty' to me. But I'm loathe to meddle too much with python code because of its layout rules.
What I can't understand is why it has taken so long for these problems to show up, they must have been there since version 1.4 was released on Oct 19 last year… at least.
|
Looking at the errors, it is using Python from the machine, not calibre. And that is Python 3.7. The error is when the code is compiled by Python. And a search
found:
Code:
Python 3 disallows mixing the use of tabs and spaces for indentation.
And these failures are on the first line in the file where the indentation type changed. So, it is the change from Python 2 to Python 3 that is causing the problems. And that it is working in Python 2 is probably a bit lucky. The tab/space usage is consistent in blocks, but, it wouldn't surprise me if there are some lines being execute when they shouldn't.