old_contents: import sslyze
  
  
  class HttpRequestGenerator:
  
      HTTP_GET_FORMAT = (
          "GET / HTTP/1.1\r\n"
          "Host: {host}\r\n"
          "User-Agent: {user_agent}\r\n"
          "Accept: */*\r\n"
          "Connection: close\r\n\r\n"
      )
  
      DEFAULT_USER_AGENT = (
          "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) "
          "Chrome/52.0.2743.116 Safari/537.36 SSLyze/{0}".format(sslyze.__version__)
      )
  
      @classmethod
      def get_request(cls, host: str, user_agent: str = None) -> bytes:
          final_user_agent = user_agent
          if final_user_agent is None:
              final_user_agent = cls.DEFAULT_USER_AGENT
          return cls.HTTP_GET_FORMAT.format(host=host, user_agent=final_user_agent).encode("utf-8")
  
new_contents: from sslyze import __version__
  
  
  class HttpRequestGenerator:
  
      HTTP_GET_FORMAT = (
          "GET / HTTP/1.1\r\n"
          "Host: {host}\r\n"
          "User-Agent: {user_agent}\r\n"
          "Accept: */*\r\n"
          "Connection: close\r\n\r\n"
      )
  
      DEFAULT_USER_AGENT = (
          "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) "
          "Chrome/52.0.2743.116 Safari/537.36 SSLyze/{0}".format(__version__.__version__)
      )
  
      @classmethod
      def get_request(cls, host: str, user_agent: str = None) -> bytes:
          final_user_agent = user_agent
          if final_user_agent is None:
              final_user_agent = cls.DEFAULT_USER_AGENT
          return cls.HTTP_GET_FORMAT.format(host=host, user_agent=final_user_agent).encode("utf-8")
  
subject: Fix import