File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 3939Timestamp = datetime .datetime
4040
4141def DateFromTicks (ticks ):
42- return apply ( Date , time .localtime (ticks )[:3 ])
42+ return Date ( * time .localtime (ticks )[:3 ])
4343
4444def TimeFromTicks (ticks ):
45- return apply ( Time , time .localtime (ticks )[3 :6 ])
45+ return Time ( * time .localtime (ticks )[3 :6 ])
4646
4747def TimestampFromTicks (ticks ):
48- return apply ( Timestamp , time .localtime (ticks )[:6 ])
48+ return Timestamp ( * time .localtime (ticks )[:6 ])
4949
5050version_info = tuple ([int (x ) for x in version .split ("." )])
5151sqlite_version_info = tuple ([int (x ) for x in sqlite_version .split ("." )])
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ def CheckAggrNoStep(self):
280280 cur .execute ("select nostep(t) from test" )
281281 self .fail ("should have raised an AttributeError" )
282282 except AttributeError , e :
283- self .failUnlessEqual (e .args [0 ], "AggrNoStep instance has no attribute 'step'" )
283+ self .failUnlessEqual (e .args [0 ], "' AggrNoStep' object has no attribute 'step'" )
284284
285285 def CheckAggrNoFinalize (self ):
286286 cur = self .con .cursor ()
You can’t perform that action at this time.
0 commit comments