diff options
author | Richard Vézina <ml.richard.vezina@gmail.com> | 2021-10-15 22:25:04 -0400 |
---|---|---|
committer | Richard Vézina <ml.richard.vezina@gmail.com> | 2021-10-15 22:25:04 -0400 |
commit | 89beb835d3311afdfff61225249b264505321c0f (patch) | |
tree | 03626401b0ac6034a1b3e725144515912f3a841f | |
parent | 0c776233e7891394b24f3b0b3636968b3a1febfe (diff) | |
download | tftpy-89beb835d3311afdfff61225249b264505321c0f.tar.gz |
is None
-rw-r--r-- | tftpy/TftpStates.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tftpy/TftpStates.py b/tftpy/TftpStates.py index 3ae1ec3..a935fc1 100644 --- a/tftpy/TftpStates.py +++ b/tftpy/TftpStates.py @@ -130,7 +130,7 @@ class TftpState(object): log.debug("In sendError, being asked to send error %d", errorcode) errpkt = TftpPacketERR() errpkt.errorcode = errorcode - if self.context.tidport == None: + if self.context.tidport is None: log.debug("Error packet received outside session. Discarding") else: self.context.sock.sendto(errpkt.encode().buffer, |