pizzapi icon indicating copy to clipboard operation
pizzapi copied to clipboard

Order class broken

Open voron434 opened this issue 5 years ago • 1 comments

I tried running your code example from README, but there is an inconsistent use of tabs and spaces in pizzapi/order.py:

Python 3.6.3 (default, Oct 3 2017, 21:45:48) [GCC 7.2.0] on linux

>>> from pizzapi import Customer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ilya/Desktop/subl/venv/lib/python3.6/site-packages/pizzapi/__init__.py", line 5, in <module>
    from .order import Order
  File "/home/ilya/Desktop/subl/venv/lib/python3.6/site-packages/pizzapi/order.py", line 130
    return response
                  ^
TabError: inconsistent use of tabs and spaces in indentation
>>> from pizzapi import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ilya/Desktop/subl/venv/lib/python3.6/site-packages/pizzapi/__init__.py", line 5, in <module>
    from .order import Order
  File "/home/ilya/Desktop/subl/venv/lib/python3.6/site-packages/pizzapi/order.py", line 130
    return response
                  ^
TabError: inconsistent use of tabs and spaces in indentation

voron434 avatar May 15 '19 14:05 voron434

Deleting the empty line below seemed to fix the problem for me.

Pokemaniac00 avatar Jun 05 '19 22:06 Pokemaniac00