Skip to content

Commit

Permalink
fix: spelling errors
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Apr 22, 2024
1 parent 81cdd0b commit 75e2bdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/netius/servers/ftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/netius/servers/pop.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/netius/servers/smtp.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 75e2bdf

Please sign in to comment.