Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 2
    With this indentation I get: "flake8: continuation line over-indented for visual indent" Commented Jul 16, 2018 at 13:44
  • 2
    @LouisM That sounds like something coming from your editor or environment, rather than base python. If it continues to be a problem for you, I'd recommend creating a new question relating to it and giving more detail on your editor and environment. Commented Jul 16, 2018 at 15:01
  • 6
    Yes it is definitely my editor, and it is only a warning. What I wanted to emphasize is that your indentation does not comply with PEP8. You should indent the second open() with 8 spaces instead of aligning it with the first one. Commented Jul 18, 2018 at 9:57
  • 5
    @LouisM PEP8 is a guideline, not rules, and in this case I would most certainly ignore it Commented Jul 23, 2018 at 9:04
  • 4
    Yes no problem with that, it might be useful for other people with automatic linters though :) Commented Jul 23, 2018 at 10:06