From 75e2bdf40b63bf44a1cca88bbbb4c3a6de8ff7b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Magalh=C3=A3es?= Date: Mon, 22 Apr 2024 13:44:14 +0100 Subject: [PATCH] fix: spelling errors --- src/netius/servers/ftp.py | 4 ++-- src/netius/servers/pop.py | 4 ++-- src/netius/servers/smtp.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/netius/servers/ftp.py b/src/netius/servers/ftp.py index 9c37255e..c75e9377 100644 --- a/src/netius/servers/ftp.py +++ b/src/netius/servers/ftp.py @@ -216,8 +216,8 @@ def on_line(self, code, message, is_final = True): # verifies if the method for the current code exists in case it # does not raises an exception indicating the problem with the # code that has just been received (probably erroneous) - extists = hasattr(self, method_n) - if not extists: raise netius.ParserError("Invalid code '%s'" % code) + exists = hasattr(self, method_n) + if not exists: raise netius.ParserError("Invalid code '%s'" % code) # retrieves the reference to the method that is going to be called # for the handling of the current line from the current instance and diff --git a/src/netius/servers/pop.py b/src/netius/servers/pop.py index a1e971cd..b5717317 100644 --- a/src/netius/servers/pop.py +++ b/src/netius/servers/pop.py @@ -214,8 +214,8 @@ def on_line(self, code, message): # verifies if the method for the current code exists in case it # does not raises an exception indicating the problem with the # code that has just been received (probably erroneous) - extists = hasattr(self, method_n) - if not extists: raise netius.ParserError("Invalid code '%s'" % code) + exists = hasattr(self, method_n) + if not exists: raise netius.ParserError("Invalid code '%s'" % code) # retrieves the reference to the method that is going to be called # for the handling of the current line from the current instance and diff --git a/src/netius/servers/smtp.py b/src/netius/servers/smtp.py index ba9d3157..d0d197bc 100644 --- a/src/netius/servers/smtp.py +++ b/src/netius/servers/smtp.py @@ -306,8 +306,8 @@ def on_line(self, code, message, is_final = True): # verifies if the method for the current code exists in case it # does not raises an exception indicating the problem with the # code that has just been received (probably erroneous) - extists = hasattr(self, method_n) - if not extists: raise netius.ParserError("Invalid code '%s'" % code) + exists = hasattr(self, method_n) + if not exists: raise netius.ParserError("Invalid code '%s'" % code) # retrieves the reference to the method that is going to be called # for the handling of the current line from the current instance and