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

use spaces for indentation (change tabs to spaces)? #16

Closed
petri opened this issue Aug 18, 2015 · 2 comments
Closed

use spaces for indentation (change tabs to spaces)? #16

petri opened this issue Aug 18, 2015 · 2 comments

Comments

@petri
Copy link
Collaborator

petri commented Aug 18, 2015

By convention, spaces are nowadays used, see PEP8: https://www.python.org/dev/peps/pep-0008/ - but not at the expense of consistency.

@petri petri added the question label Aug 25, 2015
@petri petri changed the title use spaces for indentation (change tabs to spaces) use spaces for indentation (change tabs to spaces)? Aug 25, 2015
@jnj16180340
Copy link

Causes problems in python 3.5

=============================================================== ERRORS ================================================================
______________________________________________ ERROR collecting tests/test_cleanname.py _______________________________________________
.eggs/pytest-3.0.7-py3.5.egg/_pytest/python.py:418: in _importtestmodule
    mod = self.fspath.pyimport(ensuresyspath=importmode)
.eggs/py-1.4.33-py3.5.egg/py/_path/local.py:662: in pyimport
    __import__(modname)
<frozen importlib._bootstrap>:969: in _find_and_load
    ???
<frozen importlib._bootstrap>:958: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:664: in _load_unlocked
    ???
<frozen importlib._bootstrap>:634: in _load_backward_compatible
    ???
.eggs/pytest-3.0.7-py3.5.egg/_pytest/assertion/rewrite.py:216: in load_module
    py.builtin.exec_(co, mod.__dict__)
tests/test_cleanname.py:3: in <module>
    from cleanco import cleanco
E     File "/home/nate/BioBright/cleanco/cleanco.py", line 77
E       loname = name.lower()
E                           ^
E   TabError: inconsistent use of tabs and spaces in indentation
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
======================================================= 1 error in 0.10 seconds =======================================================

@petri
Copy link
Collaborator Author

petri commented Apr 21, 2020

done as part of the 2.0 work

@petri petri closed this as completed Apr 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants