Skip to content

tabs in btclient.py file #13

@drogers141

Description

@drogers141

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions