Tweaks to use inplace arithmetic

svn: r13191
This commit is contained in:
Gerald Britton
2009-09-10 18:49:48 +00:00
parent d5e48cda06
commit 941fff23ae
31 changed files with 56 additions and 60 deletions

View File

@@ -395,7 +395,7 @@ class FanChartWidget(gtk.Widget):
self.angle[generation][selected] = [current, current + slice,
male,state]
self.shrink_parents(generation + 1, selected, current)
current = current + slice
current += slice
start,stop,male,state = self.angle[generation][selected+1]
if state in [self.NORMAL, self.EXPANDED]:
slice = (stop - start) / 2.0

View File

@@ -85,7 +85,7 @@ class StatsGramplet(Gramplet):
photo = database.get_object_from_handle(photo_id)
fullname = media_path_full(database, photo.get_path())
try:
bytes = bytes + posixpath.getsize(fullname)
bytes += posixpath.getsize(fullname)
except:
notfound.append(photo.get_path())