[GRASS-git] [OSGeo/grass-addons] f79bfa: style: use 'is True' instead of '== True'

Ondrej Pesek noreply at github.com
Sun Jun 16 03:16:39 PDT 2024


  Branch: refs/heads/style_use_is_in_boolean_conditions
  Home:   https://github.com/OSGeo/grass-addons
  Commit: f79bfa8e6487d737328d82a99b116523934d92a6
      https://github.com/OSGeo/grass-addons/commit/f79bfa8e6487d737328d82a99b116523934d92a6
  Author: Ondrej Pesek <pesej.ondrek at gmail.com>
  Date:   2024-06-16 (Sun, 16 Jun 2024)

  Changed paths:
    M src/raster/r.area.createweight/r.area.createweight.py
    M src/raster/r.mcda.roughset/r.mcda.roughset.py

  Log Message:
  -----------
  style: use 'is True' instead of '== True'

'== True' (or '== False') is not a boolean operator and can lead to wrong results

* 'is' is also unnoticeably faster



To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass-addons/settings/notifications


More information about the grass-commit mailing list