Skip to content

Commit

Permalink
Merge pull request #23 from zopefoundation/issue_22
Browse files Browse the repository at this point in the history
Make Flake8 happy.
  • Loading branch information
dataflake committed Aug 8, 2019
2 parents a44d357 + 8982d6d commit 55c2e74
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
4.8 (unreleased)
----------------

- Fix Flake8 issues.
(`#22 <https://github.com/zopefoundation/Products.MailHost/issues/22>`_)


4.7 (2019-06-03)
----------------
Expand Down
2 changes: 1 addition & 1 deletion src/Products/MailHost/MailHost.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def send(self,

# This is here for backwards compatibility only. Possibly it could
# be used to send messages at a scheduled future time, or via a mail queue?
security.declareProtected(use_mailhost_services, # NOQA: flake8: D001
security.declareProtected(use_mailhost_services, # noqa: D001
'scheduledSend')
scheduledSend = send

Expand Down
2 changes: 1 addition & 1 deletion src/Products/MailHost/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
##############################################################################

from Products.MailHost import MailHost
from Products.MailHost import SendMailTag # NOQA
from Products.MailHost import SendMailTag # noqa


def initialize(context):
Expand Down
2 changes: 1 addition & 1 deletion src/Products/MailHost/tests/testMailHost.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

# Appease flake8
if six.PY2:
unicode = unicode # NOQA: flake8: F821
unicode = unicode # noqa: F821
else:
unicode = str

Expand Down

0 comments on commit 55c2e74

Please sign in to comment.