btc icon indicating copy to clipboard operation
btc copied to clipboard

tabs in btclient.py file

Open drogers141 opened this issue 5 years ago • 0 comments

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)

drogers141 avatar Jun 22 '19 05:06 drogers141