Jeff Janies <jeff.jan...@redjack.com>
writes:

> I have recently started using Flake8 for syntax checking and have
> found that the style checking fails to check that `if __name__ ==
> “__main__”:` after a class or function has the correct number of
> newlines preceding it.

Take care, when posting email, to use an editor that won't munge the
text you're writing. Your message says “if __name__ == “__main__”:”,
which is a SyntaxError.

Easy enough to tell in this instance what you mean, but you should take
care not to require *any* guessing on the part of the reader what exact
code you are showing us.

If you're using a tool that turns “"” into a different character, you
need to avoid that tool when composing any messages about program code.

-- 
 \         “We now have access to so much information that we can find |
  `\  support for any prejudice or opinion.” —David Suzuki, 2008-06-27 |
_o__)                                                                  |
Ben Finney

_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to