From 941fff23ae4aa8f0cf217fc8e79a7692634f835d Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Thu, 10 Sep 2009 18:49:48 +0000 Subject: [PATCH] Tweaks to use inplace arithmetic svn: r13191 --- src/Bookmarks.py | 2 +- src/DataViews/GeoView.py | 14 +++++++------- src/DataViews/GrampletView.py | 4 ++-- src/FilterEditor/_EditRule.py | 2 +- src/PlaceUtils.py | 5 +---- src/PluginUtils/_PluginWindows.py | 2 +- src/RecentFiles.py | 2 +- src/ReportBase/_Bibliography.py | 4 ++-- src/ReportBase/_DrawReportDialog.py | 2 +- src/ReportBase/_GraphvizReportDialog.py | 2 +- src/ReportBase/_ReportDialog.py | 2 +- src/ReportBase/_ReportUtils.py | 2 +- src/ReportBase/_StyleEditor.py | 2 +- src/ReportBase/_TextReportDialog.py | 2 +- src/docgen/TextBufDoc.py | 4 ++-- src/gen/lib/date.py | 2 +- src/plugins/BookReport.py | 2 +- src/plugins/docgen/AsciiDoc.py | 4 ++-- src/plugins/docgen/RTFDoc.py | 4 ++-- src/plugins/docgen/SvgDrawDoc.py | 2 +- src/plugins/drawreport/FanChart.py | 2 +- src/plugins/drawreport/StatisticsChart.py | 4 ++-- src/plugins/gramplet/FanChartGramplet.py | 2 +- src/plugins/gramplet/StatsGramplet.py | 2 +- src/plugins/import/ImportProGen.py | 2 +- src/plugins/rel/rel_nl.py | 4 ++-- src/plugins/textreport/DetAncestralReport.py | 2 +- src/plugins/textreport/FamilyGroup.py | 6 +++--- src/plugins/textreport/Summary.py | 19 +++++++++---------- src/plugins/tool/EventCmp.py | 4 ++-- src/widgets/validatedmaskedentry.py | 4 ++-- 31 files changed, 56 insertions(+), 60 deletions(-) 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("