Package: weechat-scripts
Version: 20200815-1

Some of the Python scripts included in the package mix spaces and tabs
within the same block, causing a parse error. The offending files and
lines follow.

Tabs used among mostly spaces:

/usr/share/weechat/python/chanstat.py  663-664
/usr/share/weechat/python/ichatts.py  50-56, 92

Spaces used among mostly tabs:

/usr/share/weechat/python/mplayer.py  63, 66, 75, 80-82, 87
/usr/share/weechat/python/queue.py  277-278


Only with queue.py, I have confirmed that switching to uniform
indentation solves the issue, as one would expect.

There are other files in the collection that mix indentation styles,
but none within the same block, so they should be safe. For the record,
however, here is a list of all files that contain both types of
indentation (obtained with grep, contains false positives):

/usr/share/weechat/python/arespond.py
/usr/share/weechat/python/autosort.py
/usr/share/weechat/python/chanstat.py
/usr/share/weechat/python/grep_filter.py
/usr/share/weechat/python/ichatts.py
/usr/share/weechat/python/ircrypt.py
/usr/share/weechat/python/latex_unicode.py
/usr/share/weechat/python/mplayer.py
/usr/share/weechat/python/queue.py
/usr/share/weechat/python/snotify.py
/usr/share/weechat/python/spotify_nowplaying.py
/usr/share/weechat/python/tinyurl.py

Reply via email to