Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangelovian committed Aug 19, 2020
1 parent 891cd44 commit 59d7811
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deluge/core/preferencesmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ def __set_listen_on(self):
interface = interface.strip()
try:
# add square brackets to ipv6 only, as needed by lib torrent
lib_interfaces.append('['+interface+']' if ipaddress.ip_address(interface).version == 6 else interface)
lib_interfaces.append(
'[' + interface + ']'
if ipaddress.ip_address(interface).version == 6
else interface
)
except ValueError:
# ip address format failed, assume network interface name
lib_interfaces.append(interface)
Expand Down

0 comments on commit 59d7811

Please sign in to comment.