Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order class broken #59

Open
voron434 opened this issue May 15, 2019 · 1 comment
Open

Order class broken #59

voron434 opened this issue May 15, 2019 · 1 comment

Comments

@voron434
Copy link

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 voron434 mentioned this issue May 15, 2019
@Pokemaniac00
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants