if n is None: return (None,None) return (n.groups()[0]+'.'+n.groups()[1],n.groups()[2])----------------------------------------------------------------------------------------------------------------Before it was like below time format file has only this timestamp:

You should use code tags when you post code, otherwise it loses indentation and just blends in with normal text see this postTo make it clear what you need to achieve, give an expected range of inputs and the output from it required.

try: l = fobj_in.readline() while (len(l)): t,b = time_and_body(l) if t is not None: ################ t must be resulting to None because one of your readlines is not a re match so the following code is skipped cur_state['kernel_time_stamp'] = t

if not live_sessions['full']: live_sessions['full'] = FullLogSession( ################### this is not called start = t,