title: Confusing indentation issue
body: <p>I'm using an API from <a href="https://github.com/on1arf/jds6600_python" rel="nofollow noreferrer">this GIT repository</a> to control a JDS6600 signal generator.</p>
  <p>Now some of the commands work &amp; some dont due I think to the unit I'm using being slightly different to the one used by the author of the API.</p>
  <p>So to fix this I tried to see what data the device was sending back before an error is raised. I thought a simple <code>print(data)</code> would do it but I keep getting an indentation error, sorry screen shots but I think you get a better idea from a picture in this case.</p>
  <p>First with the newly added <code>print(data)</code>, note little red cross on the left</p>
  <p><a href="https://i.stack.imgur.com/C99aQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C99aQ.png" alt="enter image description here" /></a></p>
  <p>Second without,</p>
  <p><a href="https://i.stack.imgur.com/c418O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/c418O.png" alt="enter image description here" /></a></p>
  <p>So how come I'm getting this error? No matter where I place that <code>print(data)</code> within the method I get an indentation error &amp; the code falls over.</p>
  <p><strong>EDIT:</strong> The problem was fixed running <a href="https://pypi.org/project/reindent/" rel="nofollow noreferrer">reindent</a> on the offending file, which converts all the tabs to spaces. As pointed out by Tyberius in a comment below the file was a mix of tabs &amp; spaces. It seems Spyder has a unique attitude to such cases.</p>