code: def host(self):
          
          raw = self.raw_host
          if raw is None:
              return None
          if "%" in raw:
              # Hack for scoped IPv6 addresses like
              # fe80::2%Проверка
              # presence of '%' sign means only IPv6 address, so idna is useless.
              return raw
  
          try:
              return idna.decode(raw.encode("ascii"))
          except UnicodeError:  # e.g. '::1'
              return raw.encode("ascii").decode("idna")
docs: Decoded host part of URL.
  
          None for relative URLs.