diff --git a/gui/wxpython/location_wizard/wizard.py b/gui/wxpython/location_wizard/wizard.py index 4f3a2924847..ddcf080c52a 100644 --- a/gui/wxpython/location_wizard/wizard.py +++ b/gui/wxpython/location_wizard/wizard.py @@ -2520,7 +2520,7 @@ def __init__(self, parent, grassdatabase): self.grassdatabase = self.startpage.grassdatabase self.georeffile = self.filepage.georeffile # FIXME here was code for setting default region, what for is this if: - # if self.altdb == False: + # if self.altdb is False: else: # -> error self.wizard.Destroy() diff --git a/python/grass/docs/src/temporal_framework.rst b/python/grass/docs/src/temporal_framework.rst index ce4767b5332..7e68de132a9 100644 --- a/python/grass/docs/src/temporal_framework.rst +++ b/python/grass/docs/src/temporal_framework.rst @@ -290,7 +290,7 @@ to access its registered maps. strds = tgis.SpaceTimeRasterDataset(id) # Check if the space time raster dataset is in the temporal database - if strds.is_in_db(dbif=dbif) == False: + if strds.is_in_db(dbif=dbif) is False: dbif.close() gs.fatal(_("Space time %s dataset <%s> not found") % ( strds.get_new_map_instance(None).get_type(), id)) @@ -355,14 +355,14 @@ for different space time datasets (raster, 3D raster and vector): dbif.connect() # First we check if the dataset is already in the database - if stds.is_in_db(dbif=dbif) and overwrite == False: + if stds.is_in_db(dbif=dbif) and overwrite is False: dbif.close() gs.fatal(_("Space time %s dataset <%s> is already in the database. " "Use the overwrite flag.") % (stds.get_new_map_instance(None).get_type(), name)) # We delete the exiting dataset and create a new one in case we are allowed to overwrite it - if stds.is_in_db(dbif=dbif) and overwrite == True: + if stds.is_in_db(dbif=dbif) and overwrite is True: gs.warning(_("Overwrite space time %s dataset <%s> " "and unregister all maps.") % (stds.get_new_map_instance(None).get_type(), name)) @@ -399,7 +399,7 @@ Temporal shifting stds = tgis.dataset_factory(type, id) - if stds.is_in_db(dbif) == False: + if stds.is_in_db(dbif) is False: dbif.close() gs.fatal(_("Space time dataset <%s> not found in temporal database") % (id)) diff --git a/utils/gitlog2changelog.py b/utils/gitlog2changelog.py index e99155d3b50..5438a0277cb 100755 --- a/utils/gitlog2changelog.py +++ b/utils/gitlog2changelog.py @@ -88,7 +88,7 @@ elif "Signed-off-by" in line: continue # Extract the actual commit message for this commit - elif authorFound & dateFound & messageFound == False: + elif authorFound & dateFound & messageFound is False: # Find the commit message if we can if len(line) == 1: if messageNL: