-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
small fix #70
small fix #70
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice clean up thank you! I have just one minor coding style comment to consider.
aiosmtpd/smtp.py
Outdated
@@ -195,7 +193,7 @@ def _handle_client(self): | |||
log.info('%r handling connection', self.session.peer) | |||
yield from self.push( | |||
'220 {} {}'.format(self.hostname, self.__ident__)) | |||
while not self._connection_closed: # pragma: no branch | |||
while self.transport: # pragma: no branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make the check here and below a little more explicit? Rather than checking truthiness, please use while self.transport is not None
Updated. |
small fix about fields usage - self.transport and self._connection_closed duplicate each other.