Is There Something Issue In Indentation, While Using Anaconda's Spyder
Solution 1:
It is strange behavior but maybe somehow file selenium\webdriver\remote\errorhandler.py was broken.
You can open this file in text editor which has function "convert tabs to spaces", use this function and save it back to the same file.
Solution 2:
This error message...
IndentationError: unindent does notmatchanyouter indentation level
...implies that there are indentation issues with in the lines of code.
Apparently, I don't see any indentation issue with in the lines of code you have published. However, there is a possibility of Space characters mixed in with your Tab.
Solution
There are different solutions as per the IDE you are using as follows:
- Try to search and replace all the tabs with a few spaces as Spaces are the preferred method for indentation.
In sublimetext you can
setorunsetby checking or unchecking to use tabs for indentation:View--> Indentation --> Convert Indentation to TabsTo fugure out the tabs/spaces issue you can use
tabnannyas follows:python -m tabnanny your_python_file.pyWithin the Python editor, select all the code/text and do the following:
Go to Format -> Untabify RegionIncase you are using vim, press Esc and do the following to auto indent everything and will clear up any spaces you have .
On Atom, go to:
Packages > Whitespace > Convert Spaces to Tabs
Post a Comment for "Is There Something Issue In Indentation, While Using Anaconda's Spyder"