You are mixing tabs and spaces.
Find the exact location with:
python -tt yourscript.py
and replace all tabs with spaces. You really want to configure your text editor to only insert spaces for tabs as well.
More Related Contents:
- Python 2.7 IndentationError [closed]
- I’m getting an IndentationError. How do I fix it?
- IndentationError: unindent does not match any outer indentation level
- What to do with “Unexpected indent” in python?
- What should I do with “Unexpected indent” in Python?
- How to implement custom indentation when pretty-printing with the JSON module?
- Python3: ImportError: No module named ‘_ctypes’ when using Value from module multiprocessing
- Why does Python pep-8 strongly recommend spaces over tabs for indentation? [closed]
- Verifying compatibility in compiling extension types, and using them with cdef
- How to tell distutils to use gcc?
- Conditional with statement in Python
- Inconsistent use of tabs and spaces in indentation
- No acceptable C compiler found in $PATH when installing python
- How do I include files with pyinstaller?
- Python’s interpretation of tabs and spaces to indent
- Notepad++ indentation messes up
- What is the proper way to format a multi-line dict in Python?
- Error: No module named ‘fcntl’
- IndentationError: unindent does not match any outer indentation level, although the indentation looks correct
- python yaml.dump bad indentation
- Django add brackets to django models field
- How do I delete a file or folder in Python?
- Is False == 0 and True == 1 an implementation detail or is it guaranteed by the language?
- Sort list of lists ascending and then descending
- Dynamic terminal printing with python
- What is the point of setLevel in a python logging handler?
- How to retrieve a variable’s name in python at runtime?
- How to reverse a dictionary (whose values are lists) in Python? [duplicate]
- Why does CSV file contain a blank line in between each data line when outputting with Dictwriter in Python [duplicate]
- Sound generation / synthesis with python?