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

tabs in btclient.py file #13

Open
drogers141 opened this issue Jun 22, 2019 · 0 comments
Open

tabs in btclient.py file #13

drogers141 opened this issue Jun 22, 2019 · 0 comments

Comments

@drogers141
Copy link

After installing in python 3 using pip:
pip install -U https://github.com/bittorrent/btc/tarball/master
I get this error when trying to use help for the add command:

$ btc add --help
Traceback (most recent call last):
  File "/usr/local/bin/btc", line 6, in <module>
    from btc.btc import main
  File "/usr/local/lib/python3.7/site-packages/btc/btc.py", line 7, in <module>
    from .btclient import BTClient, BTClientError
  File "/usr/local/lib/python3.7/site-packages/btc/btclient.py", line 233
    f['progress'] = 0.0
                      ^
TabError: inconsistent use of tabs and spaces in indentation

The btclient.py file is the only offender:

drogers@drogers-mbp:~/code/python/btc/btc (master)
$ ls
__init__.py     btc_add.py      btc_filter.py   btc_reduce.py   btc_set.py      btc_start.py    btc_wait.py
bencode.py      btc_download.py btc_list.py     btc_remove.py   btc_show.py     btc_stop.py     btclient.py
btc.py          btc_files.py    btc_recheck.py  btc_select.py   btc_sort.py     btc_stream.py   utils.py
drogers@drogers-mbp:~/code/python/btc/btc (master)
$ egrep '\t' *.py
btclient.py:			f['progress'] = 0.0
btclient.py:			f['progress'] = round(100. * l[2] / l[1], 2)
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

No branches or pull requests

1 participant