pizzapi icon indicating copy to clipboard operation
pizzapi copied to clipboard

Inconsistent use of tabs and spaces

Open jvb93 opened this issue 6 years ago • 1 comments

Forgive my python inexperience, I come from the .net world:

I’m trying to use this library in an application of mine. I must use python3. On startup, python complains of an inconsistent use of tabs and spaces in Order.py, line 130. Is there a workaround or fix for this?

I’ve installed via pip3 if that helps.

Thanks

Traceback (most recent call last): File "pizza.py", line 10, in <module> from pizzapi import * File "/usr/local/lib/python3.5/dist-packages/pizzapi/__init__.py", line 5, in <module> from .order import Order File "/usr/local/lib/python3.5/dist-packages/pizzapi/order.py", line 130 return response ^ TabError: inconsistent use of tabs and spaces in indentation

jvb93 avatar Mar 12 '19 02:03 jvb93

So I use Pycharm and it shows me the file from modules that has the indentation error, click on it, and then simply tab the last 'return' statement. Works for me

cmt0726 avatar Mar 19 '19 05:03 cmt0726