parameters: (self, header)
docstring: Process the contents of the HTTP Server: header. Try to see
          what version the server is running on. The tested versions
          are kept in MYTHTV_VERSION_LIST and checked against responses
          like:
  
              MythTV/30-Pre-9-g1234567-dirty Linux/3.13.0-85-generic UPnP/1.0.
              MythTV/29-pre-5-g6865940-dirty Linux/3.13.0-85-generic UPnP/1.0.
              MythTV/0.28.0-10-g57c1afb Linux/4.4.0-21-generic UPnP/1.0.
              Linux 3.13.0-65-generic, UPnP/1.0, MythTV 0.27.20150622-1
docstring_summary: Process the contents of the HTTP Server: header. Try to see
          what version the server is running on. The tested versions
          are kept in MYTHTV_VERSION_LIST and checked against responses
          like:
docstring_tokens: Process the contents of the HTTP Server : header . Try to see what version the server is running on . The tested versions are kept in MYTHTV_VERSION_LIST and checked against responses like :
function: def _validate_header(self, header):
          """
          Process the contents of the HTTP Server: header. Try to see
          what version the server is running on. The tested versions
          are kept in MYTHTV_VERSION_LIST and checked against responses
          like:
  
              MythTV/30-Pre-9-g1234567-dirty Linux/3.13.0-85-generic UPnP/1.0.
              MythTV/29-pre-5-g6865940-dirty Linux/3.13.0-85-generic UPnP/1.0.
              MythTV/0.28.0-10-g57c1afb Linux/4.4.0-21-generic UPnP/1.0.
              Linux 3.13.0-65-generic, UPnP/1.0, MythTV 0.27.20150622-1
          """
  
          if not header:
              raise RuntimeError('No HTTP Server header returned from host {}.'
                                 .format(self.host))
  
          self.logger.debug('Received Server: %s', header)
  
          for version in MYTHTV_VERSION_LIST:
              if re.search('MythTV.' + version, header):
                  self.server_version = version
                  return
  
          raise RuntimeError('Tested on {}, not: {}.'
                             .format(MYTHTV_VERSION_LIST, header))
function_tokens: def _validate_header ( self , header ) : if not header : raise RuntimeError ( 'No HTTP Server header returned from host {}.' . format ( self . host ) ) self . logger . debug ( 'Received Server: %s' , header ) for version in MYTHTV_VERSION_LIST : if re . search ( 'MythTV.' + version , header ) : self . server_version = version return raise RuntimeError ( 'Tested on {}, not: {}.' . format ( MYTHTV_VERSION_LIST , header ) )