def httpdate(date_obj):
 return date_obj.strftime('%a, %d %b %Y %H:%M:%S GMT')

def httpdate ( date_obj ) : return date_obj . strftime ( '%a, %d %b %Y %H:%M:%S GMT' )
formats a datetime object for use in http headers .