[wesnoth-commits] [wesnoth/wesnoth] 9d333b: Compare to `None` using identity `is` operator

GitHub noreply at github.com
Wed Oct 31 01:21:04 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/wesnoth/wesnoth
  Commit: 9d333bc95a555bee88d5f09f3ff6777cc5c313cb
      https://github.com/wesnoth/wesnoth/commit/9d333bc95a555bee88d5f09f3ff6777cc5c313cb
  Author: MichaƂ Janiszewski <janisozaur+signed at gmail.com>
  Date:   2018-10-31 (Wed, 31 Oct 2018)

  Changed paths:
    M data/tools/scoutDefault.py
    M data/tools/unit_tree/animations.py
    M data/tools/wesnoth/campaignserver_client.py
    M data/tools/wesnoth/libgithub.py
    M data/tools/wesnoth/wescamp.py
    M data/tools/wesnoth/wmldata.py
    M data/tools/wesnoth/wmlparser.py
    M data/tools/wesnoth/wmlparser3.py
    M utils/gdb/register_wesnoth_pretty_printers.py
    M utils/simulate_lobby_traffic.py
    M utils/wiki_grabber.py

  Log Message:
  -----------
  Compare to `None` using identity `is` operator

This is a trivial change that replaces `==` operator with `is` operator, following PEP 8 guideline:

> Comparisons to singletons like None should always be done with is or is not, never the equality operators.

https://legacy.python.org/dev/peps/pep-0008/#programming-recommendations



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Commits mailing list