PY idents errors
just installed pyCharm and it drives me crazy, if i copy and paste code im getting ident errors that i cant fix,,, and umm thtas ident why do i even get errors like that… py in notepad works just fine and gets interpreted just fine… some idents i can fix and some i can like this one
if cv2.waitKey(1) & 0xFF == ord('q'):
breakwhat could possibly be wrong with it?
if cv2.waitKey(1) & 0xFF == ord('q'):
IndentationError: unexpected indent
I tried all code regen and other options nothing helps
any comments how i can fix it and how can i avoid it?
And for sake of insanity see screen shot… i isolated if statement to new file with 2 lines of code and brake still outside of if,,,

请先登录再写评论。
Hi Jason, I haven't managed to reproduce it. I get the same error as you in runtime which is expected:
For a better understanding of the issue would you please share a screenshot of File | Settings | Project | Python Interpreter?