Pycharm is not reformatting code
<p>I have heritage code in python with semicolon at the end of each line and mixed tab and spaces indentation.<br>
PyCharm reports it at code inspection and suggest to reformat code. The problem is that when I click "Reformat Code" (which IDE recommends), Pycharm does nothing - code still contains semicolons and mixed indentation.<br>
Why Code Reformat does not work? </p>

<p>Sample code:</p>

<pre><code>for i in config.args.include:       
    if i.count(":") == 2:
        path, output, prefix = i.split(":");
    elif i.count(":") == 1:
        path, prefix = i.split(":");
        output = os.path.splitext(path)[0] + ".h";
    else:
        utils.fatal("Incorrect -a paramter tuple specification");
</code></pre>