#NEWLINE# def __init__( self , content_length ) : #NEWLINE# #INDENT# headers = '' . join ( [ 'POST /soap/server_sa/SetFirmware HTTP/1.1\r\n' , 'Accept-Encoding: identity\r\n' , 'Content-Length: %d\r\n' , 'Soapaction: "urn:DeviceConfig"\r\n' , 'Host: 127.0.0.1\r\n' , 'User-Agent: Python-urllib/2.7\r\n' , 'Connection: close\r\n' , 'Content-Type: text/xml ;charset="utf-8"\r\n\r\n' ] ) #NEWLINE# self . headers = ( headers % headers )