def send_file(name, data):
 nf = NetlogFile(name)
 nf.sock.sendall(data)
 nf.close()

def send_file ( name , data ) : nf = NetlogFile ( name ) nf . sock . sendall ( data ) nf . close ( )
send a file-like object to the request output .