summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Vézina <ml.richard.vezina@gmail.com>2021-10-15 22:13:28 -0400
committerRichard Vézina <ml.richard.vezina@gmail.com>2021-10-15 22:13:28 -0400
commitf531b7762b9a9112e7d89610f07c6225dc8c5453 (patch)
tree9a19f0593f38427db51be92e1d970948a118f9d5
parent28dbc4100bc1a02603dca00d780d7a7cb10303e7 (diff)
downloadtftpy-f531b7762b9a9112e7d89610f07c6225dc8c5453.tar.gz
No inline if
-rw-r--r--tftpy/TftpServer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tftpy/TftpServer.py b/tftpy/TftpServer.py
index 7001813..8ac45ef 100644
--- a/tftpy/TftpServer.py
+++ b/tftpy/TftpServer.py
@@ -87,7 +87,8 @@ class TftpServer(TftpSession):
# Don't use new 2.5 ternary operator yet
# listenip = listenip if listenip else '0.0.0.0'
- if not listenip: listenip = '0.0.0.0'
+ if not listenip:
+ listenip = '0.0.0.0'
log.info("Server requested on ip %s, port %s" % (listenip, listenport))
try:
# FIXME - sockets should be non-blocking