diff --git a/src/Bookmarks.py b/src/Bookmarks.py index 48c4aceb3..1a6b9e437 100644 --- a/src/Bookmarks.py +++ b/src/Bookmarks.py @@ -281,7 +281,7 @@ class Bookmarks : self.namemodel.remove(the_iter) self.modified = True if row > 0: - row = row - 1 + row -= 1 self.namemodel.select_row(row) def up_clicked(self, obj): diff --git a/src/DataViews/GeoView.py b/src/DataViews/GeoView.py index d96bb1d29..d93876e04 100644 --- a/src/DataViews/GeoView.py +++ b/src/DataViews/GeoView.py @@ -524,10 +524,10 @@ class GeoView(HtmlView): modulo = intvl - ( intvl % 10 ) if modulo == 0: modulo = 10 - self.minyear = ( self.minyear - ( self.minyear % 10 ) ) - self.maxyear = ( self.maxyear - ( self.maxyear % 10 ) ) + self.minyear -= self.minyear % 10 + self.maxyear -= self.maxyear % 10 self.yearint = (self.maxyear-self.minyear)/self.maxgen - self.yearint = ( self.yearint - ( self.yearint % modulo ) ) + self.yearint -= self.yearint % modulo if self.yearint == 0: self.yearint = 10 self.mapview.write("