Minor tweaks to use slices instead of lists of items

svn: r12705
This commit is contained in:
Gerald Britton
2009-06-25 13:41:16 +00:00
parent a52bc62be9
commit fdfacd972c
9 changed files with 12 additions and 17 deletions

View File

@@ -1664,7 +1664,7 @@ def draw_vertical_bar_graph(doc, format, start_x, start_y, height, width, data):
_t = time.localtime(time.time())
_TODAY = DateHandler.parser.parse("%04d-%02d-%02d" % (_t[0], _t[1], _t[2]))
_TODAY = DateHandler.parser.parse("%04d-%02d-%02d" % _t[:3])
def estimate_age(db, person, end_handle=None, start_handle=None, today=_TODAY):
"""