diff options
author | Richard Vézina <ml.richard.vezina@gmail.com> | 2021-10-15 22:12:57 -0400 |
---|---|---|
committer | Richard Vézina <ml.richard.vezina@gmail.com> | 2021-10-15 22:12:57 -0400 |
commit | 28dbc4100bc1a02603dca00d780d7a7cb10303e7 (patch) | |
tree | 3239bbd3b071656ca31b109afe33d2840061cd3b | |
parent | 8118f41c775be01494b42efcfda84cd1bf5b1b9e (diff) | |
download | tftpy-28dbc4100bc1a02603dca00d780d7a7cb10303e7.tar.gz |
Create list directly
-rw-r--r-- | tftpy/TftpServer.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tftpy/TftpServer.py b/tftpy/TftpServer.py index af0114d..7001813 100644 --- a/tftpy/TftpServer.py +++ b/tftpy/TftpServer.py @@ -119,8 +119,7 @@ class TftpServer(TftpSession): break # Build the inputlist array of sockets to select() on. - inputlist = [] - inputlist.append(self.sock) + inputlist = [self.sock] for key in self.sessions: inputlist.append(self.sessions[key].sock) |