rmartin16 / qbittorrentui

text user interface for qbittorrent
MIT License
47 stars 4 forks source link

Pseudocode operator on line 76 in file application.py #5

Closed marshall-brown closed 2 years ago

marshall-brown commented 2 years ago

https://github.com/rmartin16/qbittorrentui/blob/43c224b94ed9564f333acb7910d3508e53e2552f/qbittorrentui/windows/application.py#L76

image

Running on WSL image

marshall-brown commented 2 years ago

Let me know if you allow PRs :)

rmartin16 commented 2 years ago

Hi @marshall-brown, That's the walrus operator; it was introduced in Python 3.8....more or less for this specific scenario. Python 3.6 will definitely get upset about it though; try it with 3.8 or newer and you should be good to go. (FWIW, I recommend pyenv for simple management of multiple python versions.)

marshall-brown commented 2 years ago

Ill upgrade test and report back