[wesnoth-commits] [wesnoth/wesnoth] bbf384: wmllint: cleanup two useless lines

Andrey Bienkowski noreply at github.com
Tue Feb 2 14:18:25 UTC 2021


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: bbf3840f8202192927e6e79bc4d0dae3a2248104
      https://github.com/wesnoth/wesnoth/commit/bbf3840f8202192927e6e79bc4d0dae3a2248104
  Author: Andrey Bienkowski <hexagonrecursion at gmail.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M data/tools/wmllint

  Log Message:
  -----------
  wmllint: cleanup two useless lines

As far as I can tell this lines do nothing.
1. `file_handle = None` is NOT how to close a file in python
2. The file handle is already closed due to `with open() as file_handle:`





More information about the Commits mailing list