def weak_date(date):
 return ((datetime.strptime(date, RFC1123_DATE_FORMAT) + timedelta(seconds=1)) if date else None)

def weak_date ( date ) : return ( ( datetime . strptime ( date , RFC1123_DATE_FORMAT ) + timedelta ( seconds = 1 ) ) if date else None )
returns a rfc-1123 string corresponding to a datetime value plus a 1 second timedelta .