diff --git a/tren.py b/tren.py index cb78bee..504150b 100755 --- a/tren.py +++ b/tren.py @@ -8,7 +8,7 @@ PROGNAME = "tren.py" BASENAME = PROGNAME.split(".py")[0] PROGENV = BASENAME.upper() -RCSID = "$Id: tren.py,v 1.198 2010/03/17 21:12:05 tundra Exp $" +RCSID = "$Id: tren.py,v 1.199 2010/03/18 16:09:06 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -668,10 +668,11 @@ lastdate = "" for fullname in self.SortViews[timeorder]: - newdate = year[0] % eval("time.localtime(self.RenNames[fullname][STATS][%s]).%s" % (year[1], year[2])) + \ - mon[0] % eval("time.localtime(self.RenNames[fullname][STATS][%s]).%s" % (mon[1], mon[2])) + \ - day[0] % eval("time.localtime(self.RenNames[fullname][STATS][%s]).%s" % (day[1], day[2])) + targettime = eval("time.localtime(self.RenNames[fullname][STATS][%s])" % year[1]) + newdate = year[0] % eval("targettime.%s" % year[2]) + \ + mon[0] % eval("targettime.%s" % mon[2]) + \ + day[0] % eval("targettime.%s" % day[2]) key = dateorder+newdate @@ -687,8 +688,6 @@ else: self.DateViews[key].append(fullname) - - # End of '__init__()' @@ -1240,7 +1239,7 @@ orderedlist.reverse() r[2] = ComputeSeqString(field, orderedlist.index(target), ALPHABETS[alphabet]) - + ### # Unrecognized Renaming Token ###